Skip to content

Commit

Permalink
Add Atlassian Cloud DKIM support
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfox675 committed Sep 13, 2021
1 parent 488bf15 commit d9170a4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ module "r53_zone_example_net" {
stripe_domainkey5 = "000000000000"
stripe_domainkey6 = "000000000000"
stripe_bounce = true
atlassian_cloud_dkim = true
}
```
18 changes: 18 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,22 @@ resource "aws_route53_record" "o365_domainkey_this2" {
ttl = var.ttl

records = [var.ms_domainkey2]
}
resource "aws_route53_record" "atlassian_cloud_domainkey_this" {
count = var.atlassian_cloud_dkim == true ? 1 : 0
zone_id = aws_route53_zone.this.zone_id
name = "s1._domainkey.${aws_route53_zone.this.name}"
type = "CNAME"
ttl = var.ttl

records = ["s1._domainkey.atlassian.net."]
}
resource "aws_route53_record" "atlassian_cloud_domainkey_this2" {
count = var.atlassian_cloud_dkim == true ? 1 : 0
zone_id = aws_route53_zone.this.zone_id
name = "s2._domainkey.${aws_route53_zone.this.name}"
type = "CNAME"
ttl = var.ttl

records = ["s2._domainkey.atlassian.net."]
}
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ variable "stripe_bounce" {
type = bool
}

variable "atlassian_cloud_dkim" {
description = "Should we create the Atlassian Cloud DKIM cname records"
default = false
type = bool
}

variable "tags" {
description = "Tags to apply to tag-able resources"
default = {}
Expand Down

0 comments on commit d9170a4

Please sign in to comment.