作者:爵士KI | 来源:互联网 | 2024-12-22 14:20
Thisrequestpertainstoexportingthehosted_zone_idattributeassociatedwiththeaws_rds_clusterresourceinTerraformconfigurations.TheabsenceofthisattributecanleadtoissueswhenintegratingDNSrecordswithRoute53.
Impacted Resource
Error Details
1 | Resource 'aws_rds_cluster.rds_cluster' does not have attribute 'hosted_zone_id' for variable 'aws_rds_cluster.rds_cluster.hosted_zone_id' |
Reproduction Steps
To reproduce the issue, follow these steps:
- Run
terraform plan
to identify any configuration discrepancies.
Configuration Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | resource "aws_route53_record" "rds" {
count = length(var.hosted_zone_ids)
zone_id = var.hosted_zone_ids[count.index]
name = var.dns_name
type = "A"
alias {
name = aws_rds_cluster.rds_cluster.endpoint
zone_id = aws_rds_cluster.rds_cluster.hosted_zone_id
evaluate_target_health = false
}
} |
This issue originated from the open-source project: hashicorp/terraform-provider-aws.
Note: This issue has been locked as it was closed 30 days ago. If you believe it should be reopened, please create a new issue and reference this one for context. Thank you!