Skip to content

Commit

Permalink
Make sure that bucket policy is created first before creating lb (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
nerahou authored Jun 6, 2023
1 parent f2095e7 commit 928e4f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions loadbalancer_private.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ resource "aws_lb" "quortex_private" {
var.private_tags,
var.tags
)
depends_on = [
aws_s3_bucket_policy.private_lb_access_logs
]
}

# Target group of the ALB (type IP)
Expand Down
3 changes: 3 additions & 0 deletions loadbalancer_public.tf
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ resource "aws_lb" "quortex_public" {
var.public_tags,
var.tags
)
depends_on = [
aws_s3_bucket_policy.public_lb_access_logs
]
}

# Target group of the ALB (type IP)
Expand Down

0 comments on commit 928e4f7

Please sign in to comment.