From 6a0426626499ac1dacbbb0de045f89e91d351ee7 Mon Sep 17 00:00:00 2001 From: Denis Baryshev Date: Fri, 8 Feb 2019 06:27:58 +0300 Subject: [PATCH] fix aws_s3_bucket resource reference (#4) --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)}"] }