Commit 96140dd9 authored by Anton Babenko's avatar Anton Babenko

Output bucket id from s3_bucket_policy to make sure that policy is present before it can be used

parent 9e8c9ed2
output "this_s3_bucket_id" { output "this_s3_bucket_id" {
description = "The name of the bucket." description = "The name of the bucket."
value = element(concat(aws_s3_bucket.this.*.id, list("")), 0) value = element(concat(aws_s3_bucket_policy.this.*.id, aws_s3_bucket.this.*.id, list("")), 0)
} }
output "this_s3_bucket_arn" { output "this_s3_bucket_arn" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment