mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-14 16:58:58 +03:00
Adding tier tags and updating subnet_id data resource filters
This commit is contained in:
@@ -5,7 +5,8 @@ locals {
|
||||
data "aws_subnet_ids" "private" {
|
||||
vpc_id = "${module.vpc.vpc_id}"
|
||||
tags = {
|
||||
Tier = "private-${var.prefix}-${var.name}"
|
||||
Name = "private-${var.prefix}-${var.name}"
|
||||
Tier = "Private"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,13 +25,14 @@ module "vpc" {
|
||||
Name = "private-${var.prefix}-${var.name}"
|
||||
Terraform = "true"
|
||||
Environment = "${local.environment}"
|
||||
|
||||
Tier = "Private"
|
||||
}
|
||||
|
||||
public_subnet_tags = {
|
||||
Name = "public-${var.prefix}-${var.name}"
|
||||
Terraform = "true"
|
||||
Environment = "${local.environment}"
|
||||
Tier = "Public"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user