Skip to content

Commit

Permalink
Use splat + join synatx on s3_bucket arn (#2)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
joshmyers authored Jan 29, 2019
1 parent 2ff3c0d commit 20cbb95
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ Available targets:
lint Lint terraform code
```

## Inputs

| Name | Description | Type | Default | Required |
Expand Down
1 change: 0 additions & 1 deletion docs/terraform.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

## Inputs

| Name | Description | Type | Default | Required |
Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ output "secret_access_key" {
}

output "s3_bucket_arn" {
value = "${aws_s3_bucket.default.arn}"
value = "${join("", aws_s3_bucket.default.*.arn)}"
description = "S3 bucket ARN"
}

0 comments on commit 20cbb95

Please sign in to comment.