【发布时间】:2021-01-16 15:35:23
【问题描述】:
当我在版本 12.24 中运行 terraform plan 时,我收到错误:不支持的参数。
Error: Unsupported argument
on .terraform/modules/admin_portal.cf_portal/modules/aws-terraform-cloudfront_s3_origin/main.tf line 60, in resource "aws_cloudfront_distribution" "cf_distribution":
60: logging_config = local.bucket_logging[local.bucket_logging_config]
An argument named "logging_config" is not expected here. Did you mean to
define a block of type "logging_config"?
tf 文件中的代码:
logging_config = local.bucket_logging[local.bucket_logging_config]
我该如何解决?
【问题讨论】:
-
你能在
logging_config出现的地方显示完整的代码吗?
标签: amazon-web-services syntax-error terraform terraform-provider-aws terraform-modules