diff --git a/Makefile b/Makefile index 37f97e8..08039c2 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ TF_MODULES = $(sort $(dir $(wildcard $(CURRENT_DIR)modules/*/))) # ------------------------------------------------------------------------------------------------- # Container versions # ------------------------------------------------------------------------------------------------- -TF_VERSION = 1.0.11 +TF_VERSION = 1.3.4 TFDOCS_VERSION = 0.16.0-0.31 FL_VERSION = 0.4 JL_VERSION = 1.6.0-0.5 diff --git a/README.md b/README.md index 48adf94..8dce617 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ More about it [here](https://www.terraform.io/language/expressions/type-constrai | Name | Version | |------|---------| -| [cloudflare](#provider\_cloudflare) | ~> 3.2 | +| [cloudflare](#provider\_cloudflare) | ~> 3.27 | @@ -33,8 +33,8 @@ More about it [here](https://www.terraform.io/language/expressions/type-constrai | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | ~> 1.0 | -| [cloudflare](#requirement\_cloudflare) | ~> 3.2 | +| [terraform](#requirement\_terraform) | ~> 1.3 | +| [cloudflare](#requirement\_cloudflare) | ~> 3.27 | @@ -66,8 +66,8 @@ list(object({ name = string value = optional(string) type = string - ttl = number - proxied = optional(bool) + ttl = optional(number, 1) + proxied = optional(bool, false) priority = optional(number) data = optional(object({ flags = number diff --git a/modules/record_collection/README.md b/modules/record_collection/README.md index 0bd89d5..02377ee 100644 --- a/modules/record_collection/README.md +++ b/modules/record_collection/README.md @@ -7,14 +7,14 @@ Terraform submodule to create a list of Cloudflare DNS records grouped by type a | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | ~> 1.0 | -| [cloudflare](#requirement\_cloudflare) | ~> 3.2 | +| [terraform](#requirement\_terraform) | ~> 1.3 | +| [cloudflare](#requirement\_cloudflare) | ~> 3.27 | ## Providers | Name | Version | |------|---------| -| [cloudflare](#provider\_cloudflare) | ~> 3.2 | +| [cloudflare](#provider\_cloudflare) | ~> 3.27 | ## Modules @@ -33,7 +33,7 @@ No modules. | [zone\_id](#input\_zone\_id) | Cloudflare Hosted Zone ID | `string` | n/a | yes | | [name](#input\_name) | Cloudflare Hosted Zone Record Name | `string` | n/a | yes | | [type](#input\_type) | Cloudflare Hosted Zone Record Type | `string` | n/a | yes | -| [records](#input\_records) | List of records to create |
list(object({| `[]` | no | +| [records](#input\_records) | List of records to create |
value = optional(string)
ttl = optional(number)
proxied = optional(bool)
priority = optional(number)
data = optional(object({
flags = number
tag = string
value = string
}))
}))
list(object({| `[]` | no | | [allow\_overwrite](#input\_allow\_overwrite) | Allow override existing records | `bool` | `false` | no | ## Outputs diff --git a/modules/record_collection/variables.tf b/modules/record_collection/variables.tf index 5b26a29..a902017 100644 --- a/modules/record_collection/variables.tf +++ b/modules/record_collection/variables.tf @@ -17,8 +17,8 @@ variable "records" { description = "List of records to create" type = list(object({ value = optional(string) - ttl = optional(number) - proxied = optional(bool) + ttl = optional(number, 1) + proxied = optional(bool, false) priority = optional(number) data = optional(object({ flags = number diff --git a/modules/record_collection/versions.tf b/modules/record_collection/versions.tf index e42b3bd..6c5ccfd 100644 --- a/modules/record_collection/versions.tf +++ b/modules/record_collection/versions.tf @@ -1,10 +1,9 @@ terraform { - experiments = [module_variable_optional_attrs] required_providers { cloudflare = { source = "cloudflare/cloudflare" - version = "~> 3.2" + version = "~> 3.27" } } - required_version = "~> 1.0" + required_version = "~> 1.3" } diff --git a/variables.tf b/variables.tf index 9ed6845..d1b8076 100644 --- a/variables.tf +++ b/variables.tf @@ -14,8 +14,8 @@ variable "records" { name = string value = optional(string) type = string - ttl = number - proxied = optional(bool) + ttl = optional(number, 1) + proxied = optional(bool, false) priority = optional(number) data = optional(object({ flags = number diff --git a/versions.tf b/versions.tf index e42b3bd..6c5ccfd 100644 --- a/versions.tf +++ b/versions.tf @@ -1,10 +1,9 @@ terraform { - experiments = [module_variable_optional_attrs] required_providers { cloudflare = { source = "cloudflare/cloudflare" - version = "~> 3.2" + version = "~> 3.27" } } - required_version = "~> 1.0" + required_version = "~> 1.3" }
value = optional(string)
ttl = optional(number, 1)
proxied = optional(bool, false)
priority = optional(number)
data = optional(object({
flags = number
tag = string
value = string
}))
}))