Skip to content

Commit 1323137

Browse files
authored
Merge branch 'main' into terragrunt-stack-generate
2 parents cce3acd + 3982e2d commit 1323137

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/aws/vpc.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type Subnet struct {
3131
AvailabilityZone string // The Availability Zone the subnet is in
3232
DefaultForAz bool // If the subnet is default for the Availability Zone
3333
Tags map[string]string // The tags associated with the subnet
34+
CidrBlock string // The CIDR block associated with the subnet
3435
}
3536

3637
const vpcIDFilterName = "vpc-id"
@@ -201,7 +202,7 @@ func GetSubnetsForVpcE(t testing.TestingT, region string, filters []types.Filter
201202

202203
for _, ec2Subnet := range subnetOutput.Subnets {
203204
subnetTags := GetTagsForSubnet(t, *ec2Subnet.SubnetId, region)
204-
subnet := Subnet{Id: aws.ToString(ec2Subnet.SubnetId), AvailabilityZone: aws.ToString(ec2Subnet.AvailabilityZone), DefaultForAz: aws.ToBool(ec2Subnet.DefaultForAz), Tags: subnetTags}
205+
subnet := Subnet{Id: aws.ToString(ec2Subnet.SubnetId), AvailabilityZone: aws.ToString(ec2Subnet.AvailabilityZone), DefaultForAz: aws.ToBool(ec2Subnet.DefaultForAz), Tags: subnetTags, CidrBlock: aws.ToString(ec2Subnet.CidrBlock)}
205206
subnets = append(subnets, subnet)
206207
}
207208

0 commit comments

Comments
 (0)