Skip to content

Commit

Permalink
Replace obsolete field values with content (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
snovikov committed Sep 6, 2024
1 parent 66a70a6 commit 066e194
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Create ACM certificate with DNS validation and validate using Cloudflare Hosted
| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5 |
| <a name="provider_cloudflare"></a> [cloudflare](#provider\_cloudflare) | >= 4.20 |
| <a name="provider_cloudflare"></a> [cloudflare](#provider\_cloudflare) | >= 4.41 |

<!-- TFDOCS_PROVIDER_END -->

Expand All @@ -30,7 +30,7 @@ Create ACM certificate with DNS validation and validate using Cloudflare Hosted
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5 |
| <a name="requirement_cloudflare"></a> [cloudflare](#requirement\_cloudflare) | >= 4.20 |
| <a name="requirement_cloudflare"></a> [cloudflare](#requirement\_cloudflare) | >= 4.41 |

<!-- TFDOCS_REQUIREMENTS_END -->

Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "cloudflare_record" "validation" {
zone_id = data.cloudflare_zone.this[0].id
name = element(local.validation_domains, count.index)["resource_record_name"]
type = element(local.validation_domains, count.index)["resource_record_type"]
value = replace(element(local.validation_domains, count.index)["resource_record_value"], "/.$/", "")
content = replace(element(local.validation_domains, count.index)["resource_record_value"], "/.$/", "")
ttl = var.dns_ttl
proxied = false

Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = ">= 4.20"
version = ">= 4.41"
}
aws = {
source = "hashicorp/aws"
Expand Down

0 comments on commit 066e194

Please sign in to comment.