Skip to content

Commit

Permalink
Attempt at precondition in lifecycle block
Browse files Browse the repository at this point in the history
  • Loading branch information
socketbox committed Feb 26, 2025
1 parent 3c832d6 commit 01d249f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions domains.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ resource "aws_amplify_domain_association" "domain" {
}
}
lifecycle {
precondition {
condition = certicate_settings.type != "CUSTOM"
error_message = "Changes to custom certificates are not ignored"
}
ignore_changes = [
sub_domain,
certificate_settings
certificate_settings,
sub_domain
]
}

}

0 comments on commit 01d249f

Please sign in to comment.