mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-16 09:48:57 +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" {
|
data "aws_subnet_ids" "private" {
|
||||||
vpc_id = "${module.vpc.vpc_id}"
|
vpc_id = "${module.vpc.vpc_id}"
|
||||||
tags = {
|
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}"
|
Name = "private-${var.prefix}-${var.name}"
|
||||||
Terraform = "true"
|
Terraform = "true"
|
||||||
Environment = "${local.environment}"
|
Environment = "${local.environment}"
|
||||||
|
Tier = "Private"
|
||||||
}
|
}
|
||||||
|
|
||||||
public_subnet_tags = {
|
public_subnet_tags = {
|
||||||
Name = "public-${var.prefix}-${var.name}"
|
Name = "public-${var.prefix}-${var.name}"
|
||||||
Terraform = "true"
|
Terraform = "true"
|
||||||
Environment = "${local.environment}"
|
Environment = "${local.environment}"
|
||||||
|
Tier = "Public"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user