-
-
Notifications
You must be signed in to change notification settings - Fork 237
fix: creation of route53 validation records when the main domain name starts with star #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… starts with star
5a3cc45
to
d1c3652
Compare
@michelzanini any chance you can update the branch with master? If not I can carry the pr forward |
@Chili-Man done, but the PR it's missing reviewers... |
@michelzanini thanks; @antonbabenko @DrFaust92 |
Would be great to get this merged in, the workaround mentioned will create the cert, but you can only do data lookups of records by the domain name itself. So if you have some other terraform resources looking for a wildcard domain ACM, they have no way to find it from the subject_alternative_names. |
I am running into the same issue when trying to setup a wildcard cert. Any idea when this PR will be merged with the master ? module.example.aws_acm_certificate.this[0]: Creating... Error: 1 error occurred: |
any update on this ? |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Consider an example where we use star (*) as prefix for
domain_name
:This should work correctly but it fails building the validation records for route 53.
The reason why is a piece of code on
locals
:The problem here is that
domain_name
has a star but when comparing it on thevalidation_domains
for-loop the star is removed there on comparison and they will never match.A simple fix is to consider domain name can also have star and strip it like done on this PR.
Breaking Changes
No breaking changes.
How Has This Been Tested?
I have run the example above after doing the fix and it worked.
Workaround while this is not fixed
To workaround I have setup it like this: