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 5baad8e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions domains.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@ resource "aws_amplify_domain_association" "domain" {
prefix = sub_domain.value.prefix
}
}
lifecycle {
precondition {
condition = certicate_settings.type != "CUSTOM"
error_message = "Changes to custom certificates are not ignored"
ignore_changes = [
certificate_settings
]
}
}
lifecycle {
ignore_changes = [
sub_domain,
certificate_settings
sub_domain
]
}

}

0 comments on commit 5baad8e

Please sign in to comment.