mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-15 01:08: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"
|
||||
}
|
||||
|
||||
data "aws_vpc" "main" {
|
||||
filter {
|
||||
name = "tag:Name"
|
||||
values = ["${var.prefix}-${var.name}"]
|
||||
data "aws_subnet_ids" "private" {
|
||||
vpc_id = "${module.vpc.id}"
|
||||
|
||||
tags = {
|
||||
Tier = "Private"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user