Skip to content

Commit

Permalink
Merge pull request #1001 from bryan-aguilar/fixSubnetList
Browse files Browse the repository at this point in the history
Specify local var in subnet list
  • Loading branch information
Aneurysm9 authored Dec 13, 2022
2 parents a93480c + 9480dfa commit 3cc348d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/basic_components/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ locals {

subnet_ids_list = tolist(data.aws_subnet_ids.aoc_public_subnet_ids.ids)

subnet_ids_random_index = random_id.subnetSelector.dec % length(subnet_ids_list)
subnet_ids_random_index = random_id.subnetSelector.dec % length(local.subnet_ids_list)

random_instance_subnet_id = local.subnet_ids_list[local.subnet_ids_random_index]
}
Expand Down

0 comments on commit 3cc348d

Please sign in to comment.