Skip to content

Commit 6a04266

Browse files
dennybaaaknysh
authored andcommitted
fix aws_s3_bucket resource reference (#4)
1 parent 20cbb95 commit 6a04266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ module "s3_user" {
4444
tags = "${var.tags}"
4545
enabled = "${var.enabled == "true" && var.user_enabled == "true" ? "true" : "false"}"
4646
s3_actions = ["${var.allowed_bucket_actions}"]
47-
s3_resources = ["${aws_s3_bucket.default.arn}/*", "${aws_s3_bucket.default.arn}"]
47+
s3_resources = ["${join("", aws_s3_bucket.default.*.arn)}/*", "${join("", aws_s3_bucket.default.*.arn)}"]
4848
}

0 commit comments

Comments
 (0)