-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
aws_acm_certificate conflict with same domain_name in the same region #7760
Comments
Well, it should work with two certificates that are the same but why are you creating them in the same region if you say you want them in different regions? provider "aws" {
region = "us-east-1"
alias = "america"
}
resource "aws_acm_certificate" "cert2" {
domain_name = "example.com"
validation_method = "DNS"
provider = "aws.america"
} |
Hi folks 👋 This issue was resolved awhile ago in version 2.23.0 of the Terraform AWS Provider and should have been fixed in all versions since. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. If you are still having trouble on recent versions of the Terraform AWS Provider, please create a new GitHub issue following the bug report template. Thanks! |
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! |
When creating two
aws_acm_certificate
resources with the samedomain_name
(and optionally samesubject_alternative_names
) only one resource is created in AWS while both resources point to the sameid
. If I create both certificate manually in the console it works as expected.One workaround is to add a dummy value in
subject_alternative_names
to differentiate both resources.My use case is to have two times the same certificate:
The bug happens when the current region is
us-east-1
.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
I should see 3 certificates in my AWS console.
Actual Behavior
I see only 2 certificates in my AWS console (one for
example.com
& one forother.com
).Steps to Reproduce
terraform apply
terraform state pull
In the output we can see that
aws_acm_certificate.cert1
&aws_acm_certificate.cert2
have the sameid
.Community Note
The text was updated successfully, but these errors were encountered: