terraform-aws-acm icon indicating copy to clipboard operation
terraform-aws-acm copied to clipboard

feat: Allow multiple domains in a single certificate

Open alemarmed opened this issue 1 year ago β€’ 10 comments

This is a follow up of https://github.com/terraform-aws-modules/terraform-aws-acm/pull/137 Credits to @amontalban for the work, I made requested changes and tested the feature.

Description

This PR allows creating one ACM certificate for multiple domains, which, is useful when using the certificate for CloudFront that only allows one certificate per distribution.

Motivation and Context

CloudFront does not support multiple ACM certificates, like ALB. Therefore, if you need to support multiple domains in a single CloudFront distribution you would have to create the certificate manually because this module does not support it.

Breaking Changes

This change should be backward compatible as I added a zones var containing a map with domains and their Route53 zone ID so the validation records are created in the correct Route53 zone.

Additionally, I have updated the tests in examples/complete-dns-validation to allow variables so it was easier for me (and others) to test with my test domains.

How Has This Been Tested?

  • [x] I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • [x] I have tested and validated these changes using one or more of the provided examples/* projects
  • [x] I have executed pre-commit run -a on my pull request

Fixes https://github.com/terraform-aws-modules/terraform-aws-acm/issues/136

alemarmed avatar Mar 06 '24 12:03 alemarmed

Hi @antonbabenko, is there a chance of resuming the review that you left on https://github.com/terraform-aws-modules/terraform-aws-acm/pull/137 here? Thanks.

alemarmed avatar Mar 22 '24 08:03 alemarmed

Thank you @alemarmed for doing this, I totally dropped the ball on the #137 but glad you created this because now I'm needing this again 🀣.

amontalban avatar Mar 22 '24 17:03 amontalban

Would also love to see this feature merged! :)

riptidewave93 avatar Apr 04 '24 15:04 riptidewave93

@bryantbiggs any chance you can check this out? Thanks!

amontalban avatar Apr 15 '24 14:04 amontalban

This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 10 days

github-actions[bot] avatar May 16 '24 00:05 github-actions[bot]

This would be amazing to have, commenting to keep it alive

nicolajv avatar May 16 '24 19:05 nicolajv

This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 10 days

github-actions[bot] avatar Jun 16 '24 00:06 github-actions[bot]

It would be great to have this feature!

y3ti avatar Jun 18 '24 16:06 y3ti

Waiting for this. It has been open since March, can a maintainer please review?

Samseppiol avatar Jun 24 '24 08:06 Samseppiol

@bryantbiggs @antonbabenko any chance you can review/merge this πŸ™? Thanks!

amontalban avatar Jul 04 '24 19:07 amontalban

This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 10 days

github-actions[bot] avatar Aug 04 '24 00:08 github-actions[bot]

Another bump to prevent this PR from being stale. Really wish the maintainer would provide feedback here :(

riptidewave93 avatar Aug 04 '24 13:08 riptidewave93

This PR is included in version 5.1.0 :tada:

antonbabenko avatar Aug 13 '24 00:08 antonbabenko

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[bot] avatar Sep 12 '24 02:09 github-actions[bot]