38 lines
610 B
Terraform
38 lines
610 B
Terraform
|
terraform {
|
||
|
required_providers {
|
||
|
google = {
|
||
|
source = "hashicorp/google"
|
||
|
version = "~> 6.0"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
provider "google" {
|
||
|
project = var.project_id
|
||
|
region = var.region
|
||
|
}
|
||
|
|
||
|
module "network" {
|
||
|
source = "./modules/network"
|
||
|
|
||
|
# Variables d'entrée
|
||
|
project_name = var.project_name
|
||
|
region = var.region
|
||
|
}
|
||
|
|
||
|
module "iam" {
|
||
|
source = "./modules/iam"
|
||
|
|
||
|
# Variables d'entrée
|
||
|
project_name = var.project_name
|
||
|
region = var.region
|
||
|
}
|
||
|
|
||
|
module "compute" {
|
||
|
source = "./modules/compute"
|
||
|
|
||
|
# Variables d'entrée
|
||
|
project_name = var.project_name
|
||
|
region = var.region
|
||
|
}
|