From 8529a6f926498b7ce00ffc1d00e3fb9c66f2611b Mon Sep 17 00:00:00 2001 From: Kyle Kotowick Date: Tue, 16 Jul 2024 17:59:09 -0400 Subject: [PATCH] Add completion output --- outputs.tf | 7 +++++++ s3.tf | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/outputs.tf b/outputs.tf index c98e8a0..f57f2ca 100644 --- a/outputs.tf +++ b/outputs.tf @@ -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 +} diff --git a/s3.tf b/s3.tf index 5f9dece..96cda7f 100644 --- a/s3.tf +++ b/s3.tf @@ -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