Skip to content

Commit

Permalink
chore: upgrade cloudflare provider, address deprecated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
swiknaba committed Aug 20, 2024
1 parent 4e05176 commit 351b7f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cloudflare/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "cloudflare_record" "api" {
zone_id = data.cloudflare_zone.default.id
name = "api"
type = "CNAME"
value = var.alb_dns_name
content = var.alb_dns_name
proxied = true
}

Expand All @@ -14,7 +14,7 @@ resource "cloudflare_record" "bastion" {
zone_id = data.cloudflare_zone.default.id
name = "bastion"
type = "CNAME"
value = var.bastion_public_dns
content = var.bastion_public_dns
proxied = false
}

Expand All @@ -26,7 +26,7 @@ resource "cloudflare_record" "s3" {
zone_id = data.cloudflare_zone.default.id
name = each.key
type = "CNAME"
value = var.domain
content = var.domain
proxied = true
}

Expand Down
2 changes: 1 addition & 1 deletion cloudflare/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = ">= 3.0"
version = ">= 4.0"
}
}
required_version = ">= 1.0"
Expand Down
2 changes: 1 addition & 1 deletion cloudflare/workers.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "cloudflare_worker_route" "route" {
resource "cloudflare_workers_route" "route" {
for_each = var.s3_cloudflare_records

zone_id = data.cloudflare_zone.default.id
Expand Down

0 comments on commit 351b7f9

Please sign in to comment.