Allow aws_acm_certificate to query the most recent certificate #546
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/acm
Issues and PRs that pertain to the acm service.
Milestone
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:
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
The text was updated successfully, but these errors were encountered: