From 60e0be7b14303a424145e0ee01b0b5fa14822c34 Mon Sep 17 00:00:00 2001 From: AF <4775679+datalek@users.noreply.github.com> Date: Mon, 18 Mar 2024 15:58:42 +0100 Subject: [PATCH] [DEV-1489] Add Active Campaign records (#752) --- .changeset/fluffy-rockets-sneeze.md | 5 ++++ apps/infrastructure/src/route53.tf | 38 ++++++++++++++++++++++++++++- 2 files changed, 42 insertions(+), 1 deletion(-) 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 diff --git a/apps/infrastructure/src/route53.tf b/apps/infrastructure/src/route53.tf index ab0af2a2b5..fcd6428dc3 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" + + 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 + } + ] +}