Skip to content

Commit

Permalink
add triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Mar 16, 2021
1 parent d01018d commit 7c092fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ses-domain/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ resource "aws_ses_domain_identity_verification" "this" {
# }

resource "null_resource" "main_output" {
triggers = {
dns_txt_name = local.ses_dns_txt_name
dns_txt_values = aws_ses_domain_identity.this.verification_token
dns_dkim_values = join(",", aws_ses_domain_dkim.this.dkim_tokens)
}
provisioner "local-exec" {
command = "test -d ${path.root}/setup || mkdir ${path.root}/setup"
}
Expand Down

0 comments on commit 7c092fe

Please sign in to comment.