Skip to content

Commit

Permalink
Merge pull request #23 from babbel/configure-spf
Browse files Browse the repository at this point in the history
Add option to disable SPF TXT record
  • Loading branch information
fmasuhr authored Nov 18, 2024
2 parents f55a587 + c60755b commit 76270f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spf.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
resource "aws_route53_record" "txt" {
count = var.configure_spf ? 1 : 0

zone_id = var.route53_zone.zone_id
name = "${var.domain_name}."
type = "TXT"
Expand Down
9 changes: 9 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
variable "configure_spf" {
type = bool
default = true

description = <<EOS
Whether to configure SPF record for the domain.
EOS
}

variable "default_tags" {
type = map(string)
default = {}
Expand Down

0 comments on commit 76270f1

Please sign in to comment.