From 834b7e589d957f46351caffc0dbf31e9cd721665 Mon Sep 17 00:00:00 2001 From: AF Date: Mon, 18 Mar 2024 14:36:37 +0100 Subject: [PATCH 1/4] Add Active Campaign records --- apps/infrastructure/src/route53.tf | 38 +++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/apps/infrastructure/src/route53.tf b/apps/infrastructure/src/route53.tf index ab0af2a2b5..1376dbb8c2 100644 --- a/apps/infrastructure/src/route53.tf +++ b/apps/infrastructure/src/route53.tf @@ -126,4 +126,40 @@ module "cms_dns_records" { } } ] -} \ No newline at end of file +} + +# Active Campaign Records +module "active_campaign_dns_records" { + source = "git::https://github.com/terraform-aws-modules/terraform-aws-route53.git//modules/records?ref=bc63328714550fd903d2574b263833c9ce1c867e" # v2.11.0" + + zone_id = aws_route53_zone.dev_portal.id + # Create only on production environment + create = var.environment == "prod" ? "true" : "false" + + records = [ + { + name = "acdkim1._domainkey" + type = "CNAME" + records = ["dkim.acdkim1.acems1.com"] + ttl = 3600 + }, + { + name = "acdkim2._domainkey" + type = "CNAME" + records = ["dkim.acdkim2.acems1.com"] + ttl = 3600 + }, + { + name = "em-3628291" + type = "CNAME" + records = ["cmd.emsend1.com"] + ttl = 3600 + }, + { + name = "_dmarc" + type = "TXT" + records = ["v=DMARC1;p=none;"] + ttl = 3600 + } + ] +} From 921a2c290cf31846f21be77518476d484cd14a8c Mon Sep 17 00:00:00 2001 From: AF <4775679+datalek@users.noreply.github.com> Date: Mon, 18 Mar 2024 14:40:46 +0100 Subject: [PATCH 2/4] Create fluffy-rockets-sneeze.md --- .changeset/fluffy-rockets-sneeze.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fluffy-rockets-sneeze.md diff --git a/.changeset/fluffy-rockets-sneeze.md b/.changeset/fluffy-rockets-sneeze.md new file mode 100644 index 0000000000..c2105ff842 --- /dev/null +++ b/.changeset/fluffy-rockets-sneeze.md @@ -0,0 +1,5 @@ +--- +"infrastructure": minor +--- + +[DEV-1489] - Add Active Campaign records From 70b28d2323c31f78166d55b900798eaa4c79a973 Mon Sep 17 00:00:00 2001 From: AF Date: Mon, 18 Mar 2024 14:44:55 +0100 Subject: [PATCH 3/4] Format code --- apps/infrastructure/src/route53.tf | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/infrastructure/src/route53.tf b/apps/infrastructure/src/route53.tf index 1376dbb8c2..7bc89494fc 100644 --- a/apps/infrastructure/src/route53.tf +++ b/apps/infrastructure/src/route53.tf @@ -138,28 +138,28 @@ module "active_campaign_dns_records" { records = [ { - name = "acdkim1._domainkey" - type = "CNAME" + name = "acdkim1._domainkey" + type = "CNAME" records = ["dkim.acdkim1.acems1.com"] - ttl = 3600 + ttl = 3600 }, { - name = "acdkim2._domainkey" - type = "CNAME" + name = "acdkim2._domainkey" + type = "CNAME" records = ["dkim.acdkim2.acems1.com"] - ttl = 3600 + ttl = 3600 }, { - name = "em-3628291" - type = "CNAME" + name = "em-3628291" + type = "CNAME" records = ["cmd.emsend1.com"] - ttl = 3600 + ttl = 3600 }, { - name = "_dmarc" - type = "TXT" + name = "_dmarc" + type = "TXT" records = ["v=DMARC1;p=none;"] - ttl = 3600 + ttl = 3600 } ] } From 15f42780e7768c65dafabed9b0ca67ca4d8fb691 Mon Sep 17 00:00:00 2001 From: AF Date: Mon, 18 Mar 2024 15:53:00 +0100 Subject: [PATCH 4/4] Update if statement --- apps/infrastructure/src/route53.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/infrastructure/src/route53.tf b/apps/infrastructure/src/route53.tf index 7bc89494fc..fcd6428dc3 100644 --- a/apps/infrastructure/src/route53.tf +++ b/apps/infrastructure/src/route53.tf @@ -134,7 +134,7 @@ module "active_campaign_dns_records" { zone_id = aws_route53_zone.dev_portal.id # Create only on production environment - create = var.environment == "prod" ? "true" : "false" + create = var.environment == "prod" records = [ {