Skip to content

Commit

Permalink
fixed lab 02-c for AWS and GCP
Browse files Browse the repository at this point in the history
  • Loading branch information
imrannayer committed Jun 23, 2021
1 parent fb1c31f commit d2c999d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion AWS/Labs/02-C-variable_types/list.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variable "x_vpc_cidr_list" {
description = "Name of VPC network"
default = ["10.10.0.0/16", "10.200.0.0/16", "10.12.0.0/16",]
default = ["10.100.0.0/16", "10.101.0.0/16", "10.102.0.0/16",]
}

resource "aws_vpc" "vpc_list" {
Expand Down
2 changes: 1 addition & 1 deletion GCP/Labs/02-C-variable_types/list.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variable "x_network_name_list" {
description = "Name of VPC networks"
default = ["my-tf-vpc-1", "my-tf-vpc-2", "my-tf-vpc-3"]
default = ["list-my-tf-vpc-1", "list-my-tf-vpc-2", "list-my-tf-vpc-3"]
}

resource "google_compute_network" "vpc_network_list" {
Expand Down
8 changes: 4 additions & 4 deletions GCP/Labs/02-C-variable_types/map.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
variable "x_network_name_map" {
description = "Name of VPC networks"
default = {
first = "my-tf-vpc-1"
second = "my-tf-vpc-2"
third = "my-tf-vpc-3"
first = "map-my-tf-vpc-1"
second = "map-my-tf-vpc-2"
third = "map-my-tf-vpc-3"
}
}

resource "google_compute_network" "vpc_network_list" {
name = lookup(var.x_network_name_map, "first", "my-tf-vpc-999")
name = lookup(var.x_network_name_map, "first", "map-my-tf-vpc-999")

auto_create_subnetworks = false
}

0 comments on commit d2c999d

Please sign in to comment.