ajout dev et network
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
google = {
|
||||
source = "hashicorp/google"
|
||||
version = "~> 6.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "google" {
|
||||
project = var.project_id
|
||||
region = var.region
|
||||
}
|
||||
|
||||
module "network"{
|
||||
source = "../../modules/network"
|
||||
|
||||
project_name = var.project_name
|
||||
region = var.region
|
||||
|
||||
|
||||
}
|
@@ -0,0 +1,35 @@
|
||||
variable "project_name"{
|
||||
description = "nom du projet"
|
||||
type = string
|
||||
default = "cours-virtu"
|
||||
}
|
||||
|
||||
variable "region"{
|
||||
description = "region du projet"
|
||||
type = string
|
||||
default = "europe-west4"
|
||||
}
|
||||
|
||||
variable "frontend_cidr"{
|
||||
description = "sous réseau frontend"
|
||||
type = string
|
||||
default = "10.0.1.0/24"
|
||||
}
|
||||
|
||||
variable "backend_cidr"{
|
||||
description = "sous réseau backend"
|
||||
type = string
|
||||
default = "10.0.2.0/24"
|
||||
}
|
||||
|
||||
variable "database_cidr"{
|
||||
description = "sous réseau database"
|
||||
type = string
|
||||
default = "10.0.3.0/24"
|
||||
}
|
||||
|
||||
variable "ssh_source_ranges"{
|
||||
description = "source range ssh"
|
||||
type = string
|
||||
default = "0.0.0.0/0"
|
||||
}
|
Reference in New Issue
Block a user