forked from pierront/but3-iac
ajout iam
This commit is contained in:
@@ -34,4 +34,9 @@ module "compute" {
|
||||
frontend_subnet_id = module.network.subnets.frontend
|
||||
backend_subnet_id = module.network.subnets.backend
|
||||
database_subnet_id = module.network.subnets.database
|
||||
}
|
||||
|
||||
module "iam" {
|
||||
source ="../../modules/iam"
|
||||
project_id = var.peoject_id
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
output "ip_internes" {
|
||||
value = module.compute.ip_internes
|
||||
}
|
||||
|
||||
output "ip_public_frontend" {
|
||||
value = module.compute.ip_public_frontend
|
||||
}
|
||||
|
||||
output "nom_instances" {
|
||||
value = module.compute.nom_instances
|
||||
}
|
||||
|
||||
output "service_account_email" {
|
||||
value = module.iam.service_account_email
|
||||
}
|
||||
|
||||
output "service_account_key" {
|
||||
sensitive = true
|
||||
value = module.iam.service_account_key
|
||||
}
|
||||
|
||||
output "vpc" {
|
||||
value = module.network.vpc
|
||||
}
|
||||
|
||||
output "subnets" {
|
||||
value = module.network.subnets
|
||||
}
|
||||
Reference in New Issue
Block a user