Skip to content

Commit

Permalink
Fix recreation bug in availability_zone_id for subnet-group
Browse files Browse the repository at this point in the history
  • Loading branch information
posquit0 committed Dec 13, 2023
1 parent 93ec1b4 commit 175608f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.31.0
0.31.1
13 changes: 3 additions & 10 deletions modules/subnet-group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,12 @@ locals {
# Subnets of the Subnet Group
###################################################

# INFO: Not supported attributes
# - `availability_zone_id`
resource "aws_subnet" "this" {
for_each = var.subnets

vpc_id = var.vpc_id
availability_zone = (each.value.availability_zone != null
? each.value.availability_zone
: (each.value.availability_zone_id != null
? local.az[each.value.availability_zone_id]
: null
)
)
vpc_id = var.vpc_id
availability_zone = each.value.availability_zone
availability_zone_id = each.value.availability_zone_id

enable_lni_at_device_index = var.local_network_interface_device_index

Expand Down

0 comments on commit 175608f

Please sign in to comment.