Skip to content

Commit

Permalink
Add completion output
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKotowick committed Jul 16, 2024
1 parent 045e35e commit 8529a6f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,10 @@ output "replication" {
description = "The Invicton-Labs/secure-s3-bucket-replication/aws module that was created for the bucket replication."
value = module.replication
}
output "complete" {
depends_on = [
module.replication.complete
]
description = "Always `true`, but doesn't return until everything in this module has been applied."
value = true
}
4 changes: 4 additions & 0 deletions s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ module "replication" {
aws.a = aws.a
aws.b = aws.b
}
depends_on = [
module.bucket_a.complete,
module.bucket_b.complete,
]
bucket_a_module = module.bucket_a
bucket_b_module = module.bucket_b
replicate_a_to_b = var.replicate_a_to_b
Expand Down

0 comments on commit 8529a6f

Please sign in to comment.