Skip to content

Commit 7672e11

Browse files
committed
CCM-11889: allow domain association removal to fail
1 parent d808c0a commit 7672e11

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

infrastructure/terraform/components/app/amplify_domain_association.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ resource "null_resource" "amplify_domain_association" {
3030
}
3131

3232
provisioner "local-exec" {
33-
when = destroy
34-
command = "aws amplify delete-domain-association --app-id ${self.triggers.amplify_app_id} --domain-name ${self.triggers.amplify_domain_name}"
33+
when = destroy
34+
command = "aws amplify delete-domain-association --app-id ${self.triggers.amplify_app_id} --domain-name ${self.triggers.amplify_domain_name}"
35+
on_failure = continue
3536
}
3637
}

0 commit comments

Comments
 (0)