Skip to content

Commit

Permalink
*.bucket is evaluated before creation, changing to *.id (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenvanderhoef authored and aknysh committed Nov 2, 2018
1 parent f6420b3 commit d0ad29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ data "aws_s3_bucket" "selected" {
}

locals {
bucket = "${join("", compact(concat(list(var.origin_bucket), concat(list(""), aws_s3_bucket.origin.*.bucket))))}"
bucket = "${join("", compact(concat(list(var.origin_bucket), concat(list(""), aws_s3_bucket.origin.*.id))))}"
bucket_domain_name = "${var.use_regional_s3_endpoint == "true" ? format("%s.s3-%s.amazonaws.com" , local.bucket, data.aws_s3_bucket.selected.region): format(var.bucket_domain_format, local.bucket)}"
}

Expand Down

0 comments on commit d0ad29c

Please sign in to comment.