fix
This commit is contained in:
		| @@ -24,4 +24,15 @@ module "network" { | ||||
|   frontend_cidr = var.frontend_cidr | ||||
|   database_cidr = var.database_cidr | ||||
|   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" { | ||||
|   description = "Nom du projet" | ||||
|   type        = string | ||||
|   default     = "tp-1-docker" | ||||
|   default     = "newtp" | ||||
| } | ||||
|  | ||||
| variable "project_id" { | ||||
|   description = "ID du projet" | ||||
|   type        = string | ||||
|   default     = "tp-1-docker" | ||||
|   default     = "newtp" | ||||
| } | ||||
|  | ||||
| variable "region" { | ||||
|   description = "Région du projet" | ||||
|   type        = string | ||||
|   default     = "europe-west4" | ||||
|   default     = "europe-west9" | ||||
| } | ||||
|  | ||||
| variable "frontend_cidr" { | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| resource "google_compute_network" "vpc" { | ||||
|   name                    = "myvpc" | ||||
|   name                    = "nom" | ||||
|   auto_create_subnetworks = false | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user