mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-14 16:58:58 +03:00
changed vpc data resource for aws_subnet_ids referencing the module vpc id
This commit is contained in:
@@ -2,10 +2,11 @@ locals {
|
|||||||
service = "${var.prefix}-${var.name}-cp"
|
service = "${var.prefix}-${var.name}-cp"
|
||||||
}
|
}
|
||||||
|
|
||||||
data "aws_vpc" "main" {
|
data "aws_subnet_ids" "private" {
|
||||||
filter {
|
vpc_id = "${module.vpc.id}"
|
||||||
name = "tag:Name"
|
|
||||||
values = ["${var.prefix}-${var.name}"]
|
tags = {
|
||||||
|
Tier = "Private"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user