当我在版本 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]
我如何解决它?