-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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_validation.cert: Expected certificate to be issued but was in state PENDING_VALIDATION #9338
Comments
Hi @mohamednazar 👋 Approximately how long did the resource wait before returning that error? That error should only return when it has retried checking the ACM Certificate validation status repeatedly for 45 minutes by default. Generally ACM Certificate validation should complete before then, but if not, it seems to suggest that either ACM was running slow at the time or somehow a misconfiguration of the validation DNS records. Can you let us know? Thanks. |
This so messed up I jus wantbwhat I want |
@mohamednazar we have been having these kind of issues from time to time in our deployments. It could take up to over 1 hour so that the ACM certificate gets validated. This kind of error does not seem predictible. Here is the comment I have put in our code source after discussing with AWS experts about this:
and the change
HTH |
If folks are consistently running into this with the default timeout of 45 minutes, we would happily accept a patch to increase the default timeout in these two places:
|
+1 |
1 similar comment
+1 |
Yup. 45m is not enough, like you said.
Also @IngussNeilands and @johnhpatton, as OP instructs, please use the thumbs up reaction button vs. the comments of "+1", which just crowd the comment section. Thanks! |
I tried adding the
Ive resorted to creating the cert with terraform and then manually validating it. Not ideal. Would love to see this fixed. |
I'm having this same problem, did anyone get a solution? ` Error: Error describing created certificate: Expected certificate to be issued but was in state PENDING_VALIDATION on ..\modules\hub-infra\certificate.tf line 24, in resource "aws_acm_certificate_validation" "cert": |
Same issue here unfortunately.
|
I got around this by using east-1 and doing it a few times. This process should really be done through the console, but it's nice to have it managed by IAC. |
I know you from https://medium.com/runatlantis/hosting-our-static-site-over-ssl-with-s3-acm-cloudfront-and-terraform-513b799aec0f got the same issues |
have anyone found a solution on this ?
|
we found the solution of our issue , we was creating an zone , this zone was not delegated with proper ns (du the fact that it was in an other aws account , and was not managed by same terraform), after proper delegation , everything started to work fine |
Hi all 👋 Just letting you know that this is issue is featured on this quarters roadmap. If a PR exists to close the issue a maintainer will review and either make changes directly, or work with the original author to get the contribution merged. If you have written a PR to resolve the issue please ensure the "Allow edits from maintainers" box is checked. Thanks for your patience and we are looking forward to getting this merged soon! |
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. |
Community Note
Terraform Version
0.11.2
Affected Resource(s)
Terraform Configuration Files
resource "aws_acm_certificate" "cert" {
domain_name = "${var.api_record_name}"
validation_method = "DNS"
lifecycle {
create_before_destroy = true
}
}
resource "aws_acm_certificate_validation" "cert" {
certificate_arn = "${aws_acm_certificate.cert.arn}"
validation_record_fqdns = [
"${aws_route53_record.cert_validation.fqdn}"
]
}
resource "aws_route53_record" "cert_validation" {
provider = "aws.ppas"
name = "${aws_acm_certificate.cert.domain_validation_options.0.resource_record_name}"
type = "${aws_acm_certificate.cert.domain_validation_options.0.resource_record_type}"
zone_id = "${var.zoneid}"
records = ["${aws_acm_certificate.cert.domain_validation_options.0.resource_record_value}"]
ttl = 60
}
Debug Output
[03:51:15]Error: Error applying plan:
[03:51:15]
[03:51:15]1 error(s) occurred:
[03:51:15]
[03:51:15]* aws_acm_certificate_validation.cert: 1 error(s) occurred:
[03:51:15]
[03:51:15]* aws_acm_certificate_validation.cert: Expected certificate to be issued but was in state PENDING_VALIDATION
Panic Output
[03:51:15]Error: Error applying plan:
[03:51:15]
[03:51:15]1 error(s) occurred:
[03:51:15]
[03:51:15]* aws_acm_certificate_validation.cert: 1 error(s) occurred:
[03:51:15]
[03:51:15]* aws_acm_certificate_validation.cert: Expected certificate to be issued but was in state PENDING_VALIDATION
Expected Behavior
ACM Certificate has to be validated automatically, but it shows "PENDING_VALIDATION" in AWS console
Actual Behavior
ACM certificate still shows "PENDING_VALIDATION"
The text was updated successfully, but these errors were encountered: