Skip to content

Commit

Permalink
Add "complete" output
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKotowick committed May 13, 2021
1 parent 0b06b28 commit 3d2f38d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions replicated-s3/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,16 @@ output "secondary_bucket_policy" {
description = "The bucket policy resource attached to the secondary bucket. If the `secondary_bucket_policy` variable is not provided, this will be `null`."
value = var.secondary_bucket_policy != null ? aws_s3_bucket_policy.secondary[0] : null
}
output "complete" {
description = "A flag for determining when everything in this module has been created."
depends_on = [
aws_iam_role_policy.replication,
aws_s3_bucket.primary,
aws_s3_bucket.secondary,
aws_s3_bucket_policy.primary,
aws_s3_bucket_policy.secondary,
aws_s3_bucket_public_access_block.primary,
aws_s3_bucket_public_access_block.secondary,
]
value = true
}

0 comments on commit 3d2f38d

Please sign in to comment.