我是Terraform的新手,我遇到了这个错误:
Error: Unsupported argument
on replication_configs line 251, in module "s3_bucket_module":
这是我的模块,通向251行:
module "s3_bucket_module" {
source = "publicmodule.net"
version = "1.0.0"
common = local.common
region = var.region
is_enabled = var.s3bucket_enabled
iamrolearn = [data.aws_iam_role.secret.arn]
replication_config = {
role = aws_iam_role.replication.arn
rules = [{
id = "everything-without-filters"
status = "enabled"
destination = {
bucket = data.aws_s3_bucket.s3_bucket_module.arn
storage_class = "STANDARD"
}
},]
}
}
s3_bucket_module变量.tf 的代码段
variable "replication_config" {
describe = "Map containing cross-region replication configs."
type = any
default = {}
}
项目变量代码段.tf
variable "replication_config" {
describe = "Map containing cross-region replication configs."
type = any
default = {}
}
任何指导都将不胜感激,因为我最初认为,也许我需要将replication_config变量添加到我的项目variables.tf文件中,而不仅仅是添加到s3_bucket_module中。
请检查模块的输入参数。模块似乎没有replication_config 的输入参数