fix
This commit is contained in:
parent
5a738414d8
commit
907157cce6
@ -25,3 +25,14 @@ module "network" {
|
|||||||
database_cidr = var.database_cidr
|
database_cidr = var.database_cidr
|
||||||
ssh_source_ranges = var.ssh_source_ranges
|
ssh_source_ranges = var.ssh_source_ranges
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
module "compute" {
|
||||||
|
source = "../../modules/compute"
|
||||||
|
|
||||||
|
instance_type = "e2-micro"
|
||||||
|
zone ="europe-west4-a"
|
||||||
|
frontend_subnet_id = module.network.id_subnetwork["frontend"]
|
||||||
|
backend_subnet_id = module.network.id_subnetwork["backend"]
|
||||||
|
database_subnet_id = module.network.id_subnetwork["database"]
|
||||||
|
}
|
@ -1,19 +1,19 @@
|
|||||||
variable "project_name" {
|
variable "project_name" {
|
||||||
description = "Nom du projet"
|
description = "Nom du projet"
|
||||||
type = string
|
type = string
|
||||||
default = "tp-1-docker"
|
default = "newtp"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "project_id" {
|
variable "project_id" {
|
||||||
description = "ID du projet"
|
description = "ID du projet"
|
||||||
type = string
|
type = string
|
||||||
default = "tp-1-docker"
|
default = "newtp"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "region" {
|
variable "region" {
|
||||||
description = "Région du projet"
|
description = "Région du projet"
|
||||||
type = string
|
type = string
|
||||||
default = "europe-west4"
|
default = "europe-west9"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "frontend_cidr" {
|
variable "frontend_cidr" {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
resource "google_compute_network" "vpc" {
|
resource "google_compute_network" "vpc" {
|
||||||
name = "myvpc"
|
name = "nom"
|
||||||
auto_create_subnetworks = false
|
auto_create_subnetworks = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user