From d5edb6afaccf3667b2133a330f17a376baeee7ea Mon Sep 17 00:00:00 2001 From: Krisjanis Lejejs Date: Fri, 27 Sep 2024 11:23:51 +0300 Subject: [PATCH 1/2] Update webservice module --- .modules/webservice/dns.tf | 4 ++-- .modules/webservice/versions.tf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.modules/webservice/dns.tf b/.modules/webservice/dns.tf index 2515168..77e9e63 100644 --- a/.modules/webservice/dns.tf +++ b/.modules/webservice/dns.tf @@ -5,8 +5,8 @@ data "cloudflare_zone" "dns_zone" { resource "cloudflare_record" "instance_dns" { zone_id = data.cloudflare_zone.dns_zone.id name = coalesce(var.subdomain, lower(var.service_name)) - value = lower(aws_alb.main.dns_name) + content = lower(aws_alb.main.dns_name) type = "CNAME" ttl = 1 proxied = var.cloudflare_proxy -} \ No newline at end of file +} diff --git a/.modules/webservice/versions.tf b/.modules/webservice/versions.tf index 6e48503..9fbb909 100644 --- a/.modules/webservice/versions.tf +++ b/.modules/webservice/versions.tf @@ -2,7 +2,7 @@ terraform { required_providers { cloudflare = { source = "cloudflare/cloudflare" - version = "~> 3.0" + version = "~> 4.0" } } -} \ No newline at end of file +} From 0eadda7081c1c3db95c6f87094667940e222d90f Mon Sep 17 00:00:00 2001 From: Krisjanis Lejejs Date: Fri, 27 Sep 2024 11:53:11 +0300 Subject: [PATCH 2/2] Update Cloudflare provider in related projects --- ios_pushserver/main.tf | 2 +- private_demo/main.tf | 2 +- service_hub_bots/main.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ios_pushserver/main.tf b/ios_pushserver/main.tf index 5aa1b47..8c803a6 100644 --- a/ios_pushserver/main.tf +++ b/ios_pushserver/main.tf @@ -15,7 +15,7 @@ terraform { cloudflare = { source = "cloudflare/cloudflare" - version = "~> 3.0" + version = "~> 4.0" } } } diff --git a/private_demo/main.tf b/private_demo/main.tf index be2bf6b..a8b6fac 100644 --- a/private_demo/main.tf +++ b/private_demo/main.tf @@ -15,7 +15,7 @@ terraform { cloudflare = { source = "cloudflare/cloudflare" - version = "~> 3.0" + version = "~> 4.0" } } } diff --git a/service_hub_bots/main.tf b/service_hub_bots/main.tf index 25b2cb7..a660c64 100644 --- a/service_hub_bots/main.tf +++ b/service_hub_bots/main.tf @@ -15,7 +15,7 @@ terraform { cloudflare = { source = "cloudflare/cloudflare" - version = "~> 3.0" + version = "~> 4.0" } } }