diff --git a/main.tf b/main.tf index efcee0a2..48cdb879 100644 --- a/main.tf +++ b/main.tf @@ -44,5 +44,5 @@ module "s3_user" { tags = "${var.tags}" enabled = "${var.enabled == "true" && var.user_enabled == "true" ? "true" : "false"}" s3_actions = ["${var.allowed_bucket_actions}"] - s3_resources = ["${aws_s3_bucket.default.arn}/*", "${aws_s3_bucket.default.arn}"] + s3_resources = ["${join("", aws_s3_bucket.default.*.arn)}/*", "${join("", aws_s3_bucket.default.*.arn)}"] }