我已经定义了以下 Terraform 模块:
module "lambda" {
source = "../lambda"
region = "us-west-1"
account = "${var.account}"
}
如何利用模块名称source
通过插值设置参数?我希望是这样的:
module "lambda" {
source = "../${this.name}"
region = "us-west-1"
account = "${var.account}"
}