Skip to content

Commit

Permalink
Update to TF 1.3.x (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
snovikov authored Nov 16, 2022
1 parent a771b74 commit a69bbab
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ More about it [here](https://www.terraform.io/language/expressions/type-constrai

| Name | Version |
|------|---------|
| <a name="provider_cloudflare"></a> [cloudflare](#provider\_cloudflare) | ~> 3.2 |
| <a name="provider_cloudflare"></a> [cloudflare](#provider\_cloudflare) | ~> 3.27 |

<!-- TFDOCS_PROVIDER_END -->

Expand All @@ -33,8 +33,8 @@ More about it [here](https://www.terraform.io/language/expressions/type-constrai

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1.0 |
| <a name="requirement_cloudflare"></a> [cloudflare](#requirement\_cloudflare) | ~> 3.2 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1.3 |
| <a name="requirement_cloudflare"></a> [cloudflare](#requirement\_cloudflare) | ~> 3.27 |

<!-- TFDOCS_REQUIREMENTS_END -->

Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions modules/record_collection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ Terraform submodule to create a list of Cloudflare DNS records grouped by type a

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1.0 |
| <a name="requirement_cloudflare"></a> [cloudflare](#requirement\_cloudflare) | ~> 3.2 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1.3 |
| <a name="requirement_cloudflare"></a> [cloudflare](#requirement\_cloudflare) | ~> 3.27 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_cloudflare"></a> [cloudflare](#provider\_cloudflare) | ~> 3.2 |
| <a name="provider_cloudflare"></a> [cloudflare](#provider\_cloudflare) | ~> 3.27 |

## Modules

Expand All @@ -33,7 +33,7 @@ No modules.
| <a name="input_zone_id"></a> [zone\_id](#input\_zone\_id) | Cloudflare Hosted Zone ID | `string` | n/a | yes |
| <a name="input_name"></a> [name](#input\_name) | Cloudflare Hosted Zone Record Name | `string` | n/a | yes |
| <a name="input_type"></a> [type](#input\_type) | Cloudflare Hosted Zone Record Type | `string` | n/a | yes |
| <a name="input_records"></a> [records](#input\_records) | List of records to create | <pre>list(object({<br> value = optional(string)<br> ttl = optional(number)<br> proxied = optional(bool)<br> priority = optional(number)<br> data = optional(object({<br> flags = number<br> tag = string<br> value = string<br> }))<br> }))</pre> | `[]` | no |
| <a name="input_records"></a> [records](#input\_records) | List of records to create | <pre>list(object({<br> value = optional(string)<br> ttl = optional(number, 1)<br> proxied = optional(bool, false)<br> priority = optional(number)<br> data = optional(object({<br> flags = number<br> tag = string<br> value = string<br> }))<br> }))</pre> | `[]` | no |
| <a name="input_allow_overwrite"></a> [allow\_overwrite](#input\_allow\_overwrite) | Allow override existing records | `bool` | `false` | no |

## Outputs
Expand Down
4 changes: 2 additions & 2 deletions modules/record_collection/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions modules/record_collection/versions.tf
Original file line number Diff line number Diff line change
@@ -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"
}
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit a69bbab

Please sign in to comment.