-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
ACM Certificate - Recreating every-time when I have multiple subject alternative names in the cert #10959
Comments
Hi, I have similar or same issue. Terraform v0.12.19 As you can see from the Plan output the SAN names are already in the certificate, just in a "wrong order". For security reasons, I've replaced the actual domain names, but kept them matching.
Oh, I forgot to add that the SAN names for my resource are coming from a map like this: But no surprise when I get the certificate from API:
|
The fix to prevent ordering differences with the |
This has been released in version 3.0.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. 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! |
Community Note
Terraform Version
Terraform v0.11.14
Affected Resource(s)
aws_acm_certificate
Terraform Configuration Files
Debug Output
aws_acm_certificate.strimzi-bootstrap-broker-int-cert �[31m�[1m(new resource required)�[0m
�[0m id: "arn:aws:acm:us-east-1:690947714100:certificate/824bde02-ebd6-4553-94b5-4e00464f5703" => �[31m(forces new resource)�[0m
arn: "arn:aws:acm:us-east-1:690947714100:certificate/824bde02-ebd6-4553-94b5-4e00464f5703" =>
domain_name: "int-kafka-bootstrap.dev.us-east-1.ncpgismdic.nadq.ci" => "int-kafka-bootstrap.dev.us-east-1.ncpgismdic.nadq.ci"
domain_validation_options.#: "0" =>
subject_alternative_names.#: "5" => "5"
subject_alternative_names.0: "kafka-broker-2.dev.us-east-1.ncpgismdic.nadq.ci" => "kafka-broker-0.dev.us-east-1.ncpgismdic.nadq.ci" �[31m(forces new resource)�[0m
subject_alternative_names.1: "kafka-broker-1.dev.us-east-1.ncpgismdic.nadq.ci" => "kafka-broker-1.dev.us-east-1.ncpgismdic.nadq.ci"
subject_alternative_names.2: "kafka-broker-0.dev.us-east-1.ncpgismdic.nadq.ci" => "kafka-broker-2.dev.us-east-1.ncpgismdic.nadq.ci" �[31m(forces new resource)�[0m
subject_alternative_names.3: "kafka-broker-4.dev.us-east-1.ncpgismdic.nadq.ci" => "kafka-broker-3.dev.us-east-1.ncpgismdic.nadq.ci" �[31m(forces new resource)�[0m
subject_alternative_names.4: "kafka-broker-3.dev.us-east-1.ncpgismdic.nadq.ci" => "kafka-broker-4.dev.us-east-1.ncpgismdic.nadq.ci" �[31m(forces new resource)�[0m
Panic Output
Expected Behavior
Basically, whenever there is a change to the SAN and/or domain names the ACM should force a new resource.
Actual Behavior
But each time Terraform build is run the ACM is forcing a new resource even when there are no changes to the domain name and/or SAN names.
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: