Skip to content

Commit

Permalink
tests/elb: add bucket policy dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
anGie44 committed Jan 27, 2022
1 parent 2330bde commit 5448d20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/service/elb/load_balancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,9 @@ resource "aws_elb" "test" {
func testAccLoadBalancerAccessLogsOn(r string) string {
return `
resource "aws_elb" "test" {
# Must have bucket policy attached first
depends_on = [aws_s3_bucket_policy.test]
availability_zones = [data.aws_availability_zones.available.names[0], data.aws_availability_zones.available.names[1], data.aws_availability_zones.available.names[2]]
listener {
Expand Down Expand Up @@ -1211,6 +1214,9 @@ data "aws_availability_zones" "available" {
func testAccLoadBalancerAccessLogsDisabled(r string) string {
return `
resource "aws_elb" "test" {
# Must have bucket policy attached first
depends_on = [aws_s3_bucket_policy.test]
availability_zones = [data.aws_availability_zones.available.names[0], data.aws_availability_zones.available.names[1], data.aws_availability_zones.available.names[2]]
listener {
Expand Down

0 comments on commit 5448d20

Please sign in to comment.