热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

ExporttheHostedZoneIDAttributeforAWSRDSClusterResource

Thisrequestpertainstoexportingthehosted_zone_idattributeassociatedwiththeaws_rds_clusterresourceinTerraformconfigurations.TheabsenceofthisattributecanleadtoissueswhenintegratingDNSrecordswithRoute53.

Impacted Resource

  • aws_rds_cluster

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:

  1. 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!


推荐阅读
author-avatar
爵士KI
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有