我无法在EMR tf模块中设置'custom_ami_id'。
null_resource:
custom_ami_id = "${lookup(var.emr_clusters[count.index], "custom_ami_id", "")}"
resource:
custom_ami_id = "${element(null_resource.emr_clusters.*.triggers.custom_ami_id, count.index)}"
.tfvars:
custom_ami_id = ""
错误运行计划:发生1个错误:
- module.emr.aws_emr_cluster.emr_cluster:“ custom_ami_id”必须以“ ami-”开头,并且仅由[a-z0-9]组成: