forked from pierront/but3-iac
test
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# À vous de définir les variables pour :
|
||||
# - instance_type
|
||||
# - zone
|
||||
# - frontend_subnet_id
|
||||
# - backend_subnet_id
|
||||
# - database_subnet_id
|
||||
|
||||
|
||||
variable "instance_type" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "zone" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "frontend_subnet_id" {
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "backend_subnet_id" {
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "database_subnet_id" {
|
||||
type = number
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# VPC
|
||||
resource "google_compute_network" "vpc" {
|
||||
name = "mon-vpc"
|
||||
name = "vpc"
|
||||
auto_create_subnetworks = false
|
||||
}
|
||||
|
||||
|
||||
@@ -27,3 +27,4 @@ variable "ssh_source_ranges" {
|
||||
description = "Plages IP autorisées pour SSH"
|
||||
type = string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user