Skip to content

Commit 20cbb95

Browse files
authored
Use splat + join synatx on s3_bucket arn (#2)
* Use splat + join synatx on s3_bucket arn As we are using a count on this resource and are currently getting the following warning message: ``` Warning: output "s3_bucket_arn": must use splat syntax to access aws_s3_bucket.default attribute "arn", because it has "count" set; use aws_s3_bucket.default.*.arn to obtain a list of the attributes across all instances ``` * docs fix for lint check to pass
1 parent 2ff3c0d commit 20cbb95

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ Available targets:
7575
lint Lint terraform code
7676
7777
```
78-
7978
## Inputs
8079

8180
| Name | Description | Type | Default | Required |

docs/terraform.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
## Inputs
32

43
| Name | Description | Type | Default | Required |

outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ output "secret_access_key" {
5151
}
5252

5353
output "s3_bucket_arn" {
54-
value = "${aws_s3_bucket.default.arn}"
54+
value = "${join("", aws_s3_bucket.default.*.arn)}"
5555
description = "S3 bucket ARN"
5656
}

0 commit comments

Comments
 (0)