Error: orphan resource aws_acm_certificate.default still has a non-empty state after apply; this is a bug in Terraform #11024
Labels
bug
Addresses a defect in current functionality.
service/acm
Issues and PRs that pertain to the acm service.
service/route53
Issues and PRs that pertain to the route53 service.
upstream-terraform
Addresses functionality related to the Terraform core binary.
Community Note
Terraform Version
Terraform v0.12.16
Affected Resource(s)
aws_acm_certificate
Terraform Configuration Files
resource "aws_acm_certificate" "default" {
provider = aws.virginia
domain_name = "some domain"
subject_alternative_names = ["*.dev.somethings", "some other fqdn"]
validation_method = "DNS"
lifecycle {
create_before_destroy = true
}
}
resource "aws_route53_record" "validation" {
zone_id = data.aws_route53_zone.public_zone.zone_id //"${aws_route53_zone.public_zone.zone_id}"
name = aws_acm_certificate.default.domain_validation_options[0].resource_record_name
type = aws_acm_certificate.default.domain_validation_options[0].resource_record_type
records = [
aws_acm_certificate.default.domain_validation_options[0].resource_record_value]
ttl = "300"
depends_on = [aws_acm_certificate.default]
}
resource "aws_acm_certificate_validation" "default" {
provider = aws.virginia
certificate_arn = aws_acm_certificate.default.arn
validation_record_fqdns = [
aws_route53_record.validation.fqdn,
]
depends_on = [aws_route53_record.validation]
}
Debug Output
There is no particular log message visible...
Panic Output
Expected Behavior
It happened on destroy, and expect it should work.
Actual Behavior
Steps to Reproduce
The text was updated successfully, but these errors were encountered: