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 71dcb67 commit f845b40
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 @@ -26,7 +26,7 @@ resource "aws_lb" "vectorstore_nlb" {

depends_on = [
module.alb_logging.s3_bucket_policy_arn,
module.alb_logging.aws_s3_bucket.logging_bucket
module.alb_logging.s3_bucket_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 @@ -7,3 +7,8 @@ output "bucket_name_output" {
output "s3_bucket_policy_arn" {
value = aws_s3_bucket_policy.bucket_policy.policy
}


output "s3_bucket_arn" {
value = aws_s3_bucket.logging_bucket.bucket
}

0 comments on commit f845b40

Please sign in to comment.