mirror of
https://github.com/ghndrx/linux-copy-demo.git
synced 2026-02-10 15:04:55 +00:00
init repo
This commit is contained in:
7
modules/vpc/outputs.tf
Normal file
7
modules/vpc/outputs.tf
Normal file
@@ -0,0 +1,7 @@
|
||||
output "vpc_network_name" {
|
||||
value = google_compute_network.vpc_network.name
|
||||
}
|
||||
|
||||
output "vpc_subnets" {
|
||||
value = google_compute_subnetwork.vpc_subnets.*.self_link
|
||||
}
|
||||
15
modules/vpc/variables.tf
Normal file
15
modules/vpc/variables.tf
Normal file
@@ -0,0 +1,15 @@
|
||||
variable "network_name" {
|
||||
type = string
|
||||
description = "Name of the VPC network to create"
|
||||
}
|
||||
|
||||
variable "subnets_cidr_list" {
|
||||
type = list(string)
|
||||
default = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24", "10.0.4.0/24"]
|
||||
description = "List of CIDR blocks for the subnets to create within the VPC network"
|
||||
}
|
||||
|
||||
variable "region" {
|
||||
type = string
|
||||
description = "Region where the VPC subnets will be created"
|
||||
}
|
||||
Reference in New Issue
Block a user