【发布时间】:2017-06-14 11:30:55
【问题描述】:
在我的 Terraform 根目录中运行 terraform output 我得到:
The module root could not be found. There is nothing to output.
我有以下文件:
iam.tf:
resource "aws_iam_user" "a_user" {
name = "a_user"
}
output.tf:
data "aws_caller_identity" "current" {}
output "account_id" {
value = "${data.aws_caller_identity.current.account_id}"
}
这个https://www.terraform.io/docs/modules/index.html 说:
Root module That is the current working directory when you run terraform apply or get, holding the Terraform configuration files. It is itself a valid module.
知道为什么会出现错误消息以及如何修复吗?
【问题讨论】:
标签: terraform