Skip to content
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

fix: create missing validation records in cases (eg, wildcard SAN) #89

Conversation

flora-five
Copy link
Contributor

@flora-five flora-five commented Jun 23, 2021

Description

Make sure that a single validation record is created for both *.domain and domain items from aws_acm_certificate.this[0].domain_validation_options.

Motivation and Context

Fixes #82

When wildcard SANs are used, the module may not create all the necessary validation records.

Breaking Changes

It may affect the users, if any, who have created a certificate that is not yet validated because of the missing validation records. Running terraform apply may delete one or more existing validation records due to the recomputed validation_domains list. Running apply one more time will be necessary to create again the validation records deleted by the previous apply.

How Has This Been Tested?

Using the example from the #82 terraform console output.

Copy link
Member

@antonbabenko antonbabenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR.

@@ -30,6 +30,7 @@ module "acm" {
"*.alerts.${local.domain_name}",
"new.sub.${local.domain_name}",
"*.${local.domain_name}",
"alerts.${local.domain_name}",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line was enough to reproduce the error.

@antonbabenko antonbabenko changed the title fix: create missing validation records in some cases when wildcard SANs are used fix: create missing validation records in cases (eg, wildcard SAN) Jun 28, 2021
@antonbabenko antonbabenko merged commit 891d495 into terraform-aws-modules:master Jun 28, 2021
@antonbabenko
Copy link
Member

Thank you, @flora-five !

v3.1.0 has been just released.

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ACM DNS validation record set not created for all domain names on Route53
2 participants