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

Allow aws_acm_certificate to query the most recent certificate #546

Closed
hashibot opened this issue Jun 13, 2017 · 3 comments · Fixed by #1837
Closed

Allow aws_acm_certificate to query the most recent certificate #546

hashibot opened this issue Jun 13, 2017 · 3 comments · Fixed by #1837
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/acm Issues and PRs that pertain to the acm service.
Milestone

Comments

@hashibot
Copy link

This issue was originally opened by @fabian-dev as hashicorp/terraform#12111. It was migrated here as part of the provider split. The original body of the issue is below.


By now using the aws_acm_certificate data source is no option for us. This is because we want to renew our ACM certs on a regular basis.

During our renewal phase and after issuing new certs, there will be more than one cert present (with equal domain names).
TF will then fail with:

data.aws_acm_certificate.xxx: Multiple certificates for domain "xxx" found in this region.

If I could use a most_recent=true flag (like it is with the aws_ami data source), I could gracefully apply the TF configuration during the renewal phase and switch to new certs.

I would appreciate your thought on this.

Cheers Fabian

@hashibot hashibot added the enhancement Requests to existing resources that expand the functionality or scope. label Jun 13, 2017
@radeksimko radeksimko added the service/acm Issues and PRs that pertain to the acm service. label Jan 25, 2018
@bflad bflad added this to the v1.9.0 milestone Feb 1, 2018
@bflad
Copy link
Member

bflad commented Feb 1, 2018

Thanks for your patience here, everyone! The most_recent functionality is now in master and will release in v1.9.0 of the AWS provider. Happy Terraform'ing! 🎉

@bflad
Copy link
Member

bflad commented Feb 9, 2018

This has been released in terraform-provider-aws version 1.9.0. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Apr 8, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/acm Issues and PRs that pertain to the acm service.
Projects
None yet
3 participants