forked from pierront/but3-iac
fin + terraform show
This commit is contained in:
@@ -15,23 +15,23 @@ provider "google" {
|
|||||||
module "network" {
|
module "network" {
|
||||||
source = "../../modules/network"
|
source = "../../modules/network"
|
||||||
project_name = var.project_name
|
project_name = var.project_name
|
||||||
region = var.region
|
region = var.region
|
||||||
frontend_cidr = var.frontend_cidr
|
frontend_cidr = var.frontend_cidr
|
||||||
backend_cidr = var.backend_cidr
|
backend_cidr = var.backend_cidr
|
||||||
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" {
|
module "compute" {
|
||||||
source = "../../modules/compute"
|
source = "../../modules/compute"
|
||||||
instance_type = var.instance_type
|
instance_type = var.instance_type
|
||||||
zone = var.zone
|
zone = var.zone
|
||||||
frontend_subnet_id = module.network.subnets.frontend
|
frontend_subnet_id = module.network.subnets.frontend
|
||||||
backend_subnet_id = module.network.subnets.backend
|
backend_subnet_id = module.network.subnets.backend
|
||||||
database_subnet_id = module.network.subnets.database
|
database_subnet_id = module.network.subnets.database
|
||||||
}
|
}
|
||||||
|
|
||||||
module "iam" {
|
module "iam" {
|
||||||
source = "../../modules/iam"
|
source = "../../modules/iam"
|
||||||
project_id = var.project_id
|
project_id = var.project_id
|
||||||
}
|
}
|
||||||
@@ -16,7 +16,7 @@ output "service_account_email" {
|
|||||||
|
|
||||||
output "service_account_key" {
|
output "service_account_key" {
|
||||||
sensitive = true
|
sensitive = true
|
||||||
value = module.iam.service_account_key
|
value = module.iam.service_account_key
|
||||||
}
|
}
|
||||||
|
|
||||||
output "vpc" {
|
output "vpc" {
|
||||||
@@ -24,5 +24,5 @@ output "vpc" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
output "subnets" {
|
output "subnets" {
|
||||||
value = module.network.subnets
|
value = module.network.subnets
|
||||||
}
|
}
|
||||||
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"version": 4,
|
"version": 4,
|
||||||
"terraform_version": "1.14.1",
|
"terraform_version": "1.14.1",
|
||||||
"serial": 7,
|
"serial": 12,
|
||||||
"lineage": "7ef9decf-6c38-b2fc-8cc0-06d4c8d2121a",
|
"lineage": "7ef9decf-6c38-b2fc-8cc0-06d4c8d2121a",
|
||||||
"outputs": {
|
"outputs": {
|
||||||
"instance_names": {
|
"instance_names": {
|
||||||
|
|||||||
@@ -43,12 +43,12 @@ variable "project_id" {
|
|||||||
|
|
||||||
variable "instance_type" {
|
variable "instance_type" {
|
||||||
description = "type de l'instance"
|
description = "type de l'instance"
|
||||||
type = string
|
type = string
|
||||||
default = "e2-small"
|
default = "e2-small"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "zone" {
|
variable "zone" {
|
||||||
description = "Nom de la zone"
|
description = "Nom de la zone"
|
||||||
type = string
|
type = string
|
||||||
default = "europe-west9-b"
|
default = "europe-west9-b"
|
||||||
}
|
}
|
||||||
553
terraform_show
Normal file
553
terraform_show
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user