Commit a975b71e authored by Mike Horwath's avatar Mike Horwath
Browse files

terraform updates and docs

parent 7cc57f65
Pipeline #1696 passed with stage
in 10 seconds
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: detect-aws-credentials
- id: detect-private-key
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-executables-have-shebangs
- id: check-symlinks
- id: check-yaml
- id: check-json
- id: check-added-large-files
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.31.0
hooks:
- id: yapf
- repo: https://github.com/detailyang/pre-commit-shell
rev: 1.0.5
hooks:
- id: shell-lint
# args: [--format=json]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.50.0
hooks:
- id: terraform_fmt
- id: terragrunt_fmt
- id: terraform_docs
#- id: terraform_docs_replace
# args: ['--with-aggregate-type-defaults', '--sort-inputs-by-required']
- id: terraform_validate
- id: terraform_tflint
args:
- 'args=--deep'
- 'args=--enable-rule=terraform_documented_variables'
- id: terraform_tfsec
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
hooks:
#- id: bundler-audit
#- id: check-mailmap
#- id: fasterer
#- id: forbid-binary
#- id: forbid-space-in-indent
#- id: git-check # Configure in .gitattributes
#- id: git-dirty # Configure in .gitignore
#- id: markdownlint # Configure in .mdlrc
#- id: reek
#- id: require-ascii
#- id: rubocop
#- id: script-must-have-extension
#- id: script-must-not-have-extension
- id: shellcheck
- id: shfmt
......@@ -44,4 +44,46 @@ N/A
* `blacklist_id` - The access rule ID list for blacklisted IPs
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Requirements
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13 |
| <a name="requirement_cloudflare"></a> [cloudflare](#requirement\_cloudflare) | ~> 2.0 |
## Providers
| Name | Version |
|------|---------|
| <a name="provider_cloudflare"></a> [cloudflare](#provider\_cloudflare) | 2.24.0 |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [cloudflare_access_rule.blacklisted_ip](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/access_rule) | resource |
| [cloudflare_access_rule.whitelisted_ip](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/access_rule) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_blacklist_ips"></a> [blacklist\_ips](#input\_blacklist\_ips) | n/a | `list(string)` | `[]` | no |
| <a name="input_configuration_target"></a> [configuration\_target](#input\_configuration\_target) | n/a | `string` | `""` | no |
| <a name="input_configuration_value"></a> [configuration\_value](#input\_configuration\_value) | n/a | `string` | `""` | no |
| <a name="input_mode"></a> [mode](#input\_mode) | n/a | `string` | `""` | no |
| <a name="input_notes"></a> [notes](#input\_notes) | n/a | `string` | `""` | no |
| <a name="input_whitelist_ips"></a> [whitelist\_ips](#input\_whitelist\_ips) | n/a | `list(string)` | `[]` | no |
| <a name="input_zone"></a> [zone](#input\_zone) | n/a | `string` | `""` | no |
## Outputs
| Name | Description |
|------|-------------|
| <a name="output_blacklist_id"></a> [blacklist\_id](#output\_blacklist\_id) | n/a |
| <a name="output_whitelist_id"></a> [whitelist\_id](#output\_whitelist\_id) | n/a |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
......@@ -21,4 +21,3 @@ resource "cloudflare_access_rule" "blacklisted_ip" {
value = element(var.blacklist_ips, count.index)
}
}
......@@ -32,4 +32,3 @@ variable "blacklist_ips" {
type = list(string)
default = []
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment