大佬教程收集整理的这篇文章主要介绍了terraform 创建全局 rds 实例将不起作用,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在努力使本教程发挥作用https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_global_cluster#attributes-reference
目前我使用的配置看起来像这样,当我使用 @R_403_3808@ plan 来查看它是如何工作的时,它会失败。
resource "aws_rds_global_cluster" "example" {
global_cluster_IDentifIEr = "global-test"
database_name = "example"
ENGIne = "aurora-POSTGResql"
ENGIne_version = "12.6"
}
resource "aws_rds_cluster" "priMary" {
# provIDer = aws.priMary
count = "${local.resourceCount == "2" ? "1" : "0"}"
IDentifIEr = "kepler-example-global-cluster-${lookup(var.kepler-env-name,var.env)}-${Count.index}"
database_name = "example"
ENGIne = "aurora-POSTGResql"
ENGIne_version = "12.6"
vpc_security_group_IDs = ["${var.rds_security_group_survey_ID}"]
# cluster_IDentifIEr = aws_rds_global_cluster.example_global_cluster.ID
master_username = "root"
master_password = "somepass123"
# master_password = var.credential
global_cluster_IDentifIEr = aws_rds_global_cluster.example.ID
db_subnet_group_name = var.db_subnet_group_ID
}
目前我收到此错误,
Error: Error loading modules: module openworld: Error parsing .@R_403_3808@/modules/d375d2d1997599063f4fb9e7587fec26/main.tf: At 63:31: UnkNown token: 63:31 IDENT aws_rds_global_cluster.example.ID
我很困惑为什么会出现这个错误
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的terraform 创建全局 rds 实例将不起作用全部内容,希望文章能够帮你解决terraform 创建全局 rds 实例将不起作用所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。