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
|
# VPC
|
||||||
resource "google_compute_network" "vpc" {
|
resource "google_compute_network" "vpc" {
|
||||||
name = "mon-vpc"
|
name = "vpc"
|
||||||
auto_create_subnetworks = false
|
auto_create_subnetworks = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,3 +27,4 @@ variable "ssh_source_ranges" {
|
|||||||
description = "Plages IP autorisées pour SSH"
|
description = "Plages IP autorisées pour SSH"
|
||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user