Skip to content

Commit

Permalink
LB access-logs update depends-on S3 bucket policy
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Feb 6, 2025
1 parent cac6f0f commit 4ce5a97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ecs-cluster/keycloak.tf
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ resource "aws_lb" "keycloak" {
prefix = "access-logs"
enabled = true
}

depends_on = [
# ELB writes a test file to bucket/access-logs so the policy must be in place
aws_s3_bucket_policy.alb-logs
]
}

resource "aws_alb_target_group" "keycloak" {
Expand Down

0 comments on commit 4ce5a97

Please sign in to comment.