Skip to content

Commit

Permalink
Adding depends_on to alb on bucket policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Elhaiek committed Apr 10, 2024
1 parent 9b2ad5b commit edd6be1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/alb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ resource "aws_lb" "vectorstore_nlb" {
}

depends_on = [
aws_s3_bucket_policy.bucket_policy
module.alb_logging.s3_bucket_policy_arn
]
}

Expand Down
5 changes: 5 additions & 0 deletions terraform/modules/alb_logging/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ output "bucket_name_output" {
description = "The name of the S3 bucket for ALB logs"
value = aws_s3_bucket.logging_bucket.bucket
}


output "s3_bucket_policy_arn" {
value = aws_s3_bucket_policy.bucket_policy.policy
}

0 comments on commit edd6be1

Please sign in to comment.