2018/09/19 18:23:59 [INFO] Terraform version: 0.11.7 41e50bd32a8825a84535e353c3674af8ce799161
2018/09/19 18:23:59 [INFO] Go runtime version: go1.10.1
2018/09/19 18:23:59 [INFO] CLI args: []string{"/Users/kyle/bin/terraform", "-v"}
2018/09/19 18:23:59 [DEBUG] Attempting to open CLI config file: /Users/kyle/.terraformrc
2018/09/19 18:23:59 Loading CLI configuration from /Users/kyle/.terraformrc
2018/09/19 18:23:59 [INFO] CLI command args: []string{"version", "-v"}
Terraform v0.11.7
https://gist.github.com/canadiannomad/1365cebe63686112ae5114c1cdd974c8
I have a certificate that is nowhere near renewal time that I created and have been using with terraform for quite some time. Today when I ran a terraform plan I get an error No validation options need to retry
But I'm not in need of validating at this time.
Should proceed when
ValidationMethod: "EMAIL",
ValidationStatus: "SUCCESS"
is found.
resource "aws_acm_certificate" "mysite" {
domain_name = "mysite.com"
validation_method = "EMAIL"
}
terraform plan
No validation options need to retry
I'm thinking describe-certificate
no longer sends emails when ValidationStatus
== SUCCESS
It seems that the DNS validation has the same issue.
Yes can confirm that this is happening for DNS validation in the same way with validation_method = "DNS"
. Some interesting things I noticed are that for the failing certificates (2),
This is not the case for the certificates (3) that work. Additionally for one failing certificate I have discovered that the CNAME records were missing but for the other failing certificate, they were present so this may be unrelated.
All certificates are "Issued" and working.
We are having the same issue @eguven mentioned.. Is there any workaround?
I got the same issue with DNS validation. I fix it with this workaround:
terraform state rm "aws_acm_certificate.your_certificate"
terraform apply
And then remove the old one on the AWS web console.
I've also hit this when trying to import an existing cert. I saw the caveat about import in the docs but it only mentions non-AMAZON_ISSUED certs, and mine is one.
Edit: Adding the output from aws acm describe-certificate --certificate-arn <redacted arn> --query=Certificate.DomainValidationOptions
below:
[
{
"DomainName": "example.com",
"ValidationDomain": "example.com",
"ValidationStatus": "SUCCESS",
"ValidationMethod": "EMAIL"
},
{
"DomainName": "*.example.com",
"ValidationDomain": "example.com",
"ValidationStatus": "SUCCESS",
"ValidationMethod": "EMAIL"
},
{
"DomainName": "*.private.example.com",
"ValidationEmails": [
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]"
],
"ValidationDomain": "example.com",
"ValidationStatus": "SUCCESS",
"ValidationMethod": "EMAIL"
}
]
Hi folks 👋 Sorry for the trouble here. The fix for this should be merged (although its not possible to acceptance test) and will be released in version 1.54.0 of the AWS provider, very shortly. 👍
This has been released in version 1.54.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
Ran into this with provider.aws v2.24.0
getting it with terraform-provider-aws_v2.33.0_x4, terraform 0.11.14
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!
Most helpful comment
Ran into this with provider.aws v2.24.0