小编Anu*_*hor的帖子

为什么 terraform 失败并显示“此处不需要名为“flow_log_destination_type”的参数”?

当我使用 terraform 创建 vpc 流日志模块到 s3 存储桶时,它会抛出如下错误:

  An argument named "flow_log_destination_type" is not expected here.
  An argument named "flow_log_destination_arn" is not expected here.
Run Code Online (Sandbox Code Playgroud)

在 Terraform 文档中,我可以看到要填写的详细信息,例如log_destination_type & log_destination_arn,并且我在 GitHub 上找到了一些文档,这些文档完全相同,但在尝试时它对我不起作用

产生以下错误:

Error: Unsupported argument

  on main.tf line 52, in module "vpc_with_flow_logs_s3_bucket":
  52:   flow_log_destination_type = "s3"

An argument named "flow_log_destination_type" is not expected here.


Error: Unsupported argument

  on main.tf line 53, in module "vpc_with_flow_logs_s3_bucket":
  53:   flow_log_destination_arn  = "${aws_s3_bucket.terra-test2-lifecycle.arn}"

An argument named "flow_log_destination_arn" is not expected here.


Error: Unsupported argument …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services terraform

16
推荐指数
2
解决办法
6万
查看次数

标签 统计

amazon-web-services ×1

terraform ×1