From 34fe76556556e6afc635c0ba9dbe3a9f7387ac13 Mon Sep 17 00:00:00 2001 From: Vallat Date: Wed, 4 Dec 2024 16:16:05 +0100 Subject: [PATCH] network --- modules/network/main.tf | 0 modules/network/outputs.tf | 0 modules/network/variables.tf | 47 ++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 modules/network/main.tf create mode 100644 modules/network/outputs.tf create mode 100644 modules/network/variables.tf diff --git a/modules/network/main.tf b/modules/network/main.tf new file mode 100644 index 0000000..e69de29 diff --git a/modules/network/outputs.tf b/modules/network/outputs.tf new file mode 100644 index 0000000..e69de29 diff --git a/modules/network/variables.tf b/modules/network/variables.tf new file mode 100644 index 0000000..1baab37 --- /dev/null +++ b/modules/network/variables.tf @@ -0,0 +1,47 @@ +variable "project_id" { + description = "ID du projet GCP" + type = string + default = "97892" +} + +variable "project_name" { + description = "nom_du_projet" + type = string + default = "terraforming" +} + +variable "region" { + description = "emplacement" + type = string + default = "europe-west4" +} + +variable "frontend_cidr" { + description = "addr_front" + type = string + default = "10.0.1.0/24" +} + +variable "backend_cidr" { + description = "addr_back" + type = string + default = "10.0.2.0/24" +} + +variable "database_cidr" { + description = "addr_bdd" + type = string + default = "10.0.3.0/24" +} + +variable "ssh_source_ranges" { + description = "addr_ssh" + type = string + default = "0.0.0.0/0" +} + +variable "http_source_ranges" { + description = "addr_http" + type = string + default = "0.0.0.0/0" +}