-
Notifications
You must be signed in to change notification settings - Fork 9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource/aws_acm_certificate: Correctly handle SAN entries that match…
… domain_name AWS automatically adds a SAN entry that matches the `domain_name` value. This entry was being deleted in order to avoid spurious diffs where user's config didn't include the `domain_name` value in `subject_alternative_names`. This change reverses the logic so as to better reflect the actual state of a certificate in ACM; all SANs are now tracked in Terraform state, including the default SAN that AWS adds. If a user hasn't specified the `domain_name` entry in `subject_alternative_names` we add it for them to avoid spurious diffs.
- Loading branch information
1 parent
fd3cb39
commit 17f0695
Showing
3 changed files
with
73 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:bug | ||
resource/aws_acm_certificate: Correctly handle SAN entries that match domain_name | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters