Skip to content

Commit

Permalink
terraform, aws: customize subnet tags
Browse files Browse the repository at this point in the history
  • Loading branch information
clstokes committed Jun 11, 2024
1 parent 6cd1838 commit 64cc303
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terraform/aws/internal-modules/aws-vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ module "vpc" {
name = var.name
tags = var.tags

public_subnet_tags = merge(var.tags, { Name = "${var.name}-public" })
private_subnet_tags = merge(var.tags, { Name = "${var.name}-private" })

cidr = var.cidr

azs = var.azs != null ? var.azs : data.aws_availability_zones.available.zone_ids
Expand Down

0 comments on commit 64cc303

Please sign in to comment.