Skip to content

Commit

Permalink
Merge pull request #8 from nventive/fix/vpc-id-when-lb-is-disabled
Browse files Browse the repository at this point in the history
fix: Fix bug with data.aws_subnet.lb being used even when count is 0
  • Loading branch information
jbonnier authored Oct 27, 2023
2 parents a8db2ef + a1ea2cd commit c8ffdc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module "ecs_cluster" {

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.21.0 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
## Modules

| Name | Source | Version |
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module "lb" {
access_logs_enabled = var.alb_access_logs_enabled
access_logs_force_destroy = var.alb_access_logs_force_destroy
access_logs_prefix = var.alb_access_logs_prefix
vpc_id = data.aws_subnet.lb.0.vpc_id
vpc_id = join("", data.aws_subnet.lb.*.vpc_id)

context = module.this.context
}
Expand Down

0 comments on commit c8ffdc2

Please sign in to comment.