【文件属性】:
文件名称:tf-aws-rds:Terraform AWS RDS
文件大小:4KB
文件格式:ZIP
更新时间:2021-04-12 16:48:12
terrafrom HCL
RDS模块
当我们有multi_az = true时需要解决此问题,那么我们不需要availability_zone ,但是当multi_az = false时需要指定一个区域
availability_zone = "${element(split(",", var.azs), 0)}"
multi_az = "${var.rds_multi_az}"
笔记
由于无法首先确定var.app_sg_ids因此无法在单个var.app_sg_ids terraform apply上创建allow_connect_from_app 。 解决方案:
包含模块并创建自己的allow_connect_from_app ,将app_sg_ids为空白
使用临时注释tf-aws-rds块执行terraform apply ,然后在创建var.app_sg_ids资源时
【文件预览】:
tf-aws-rds-master
----output.tf(219B)
----.gitignore(31B)
----README.md(3KB)
----main.tf(7KB)
----variables.tf(2KB)