Allow using no service account in compute-vm (#1692)

* module and tests

* align blueprints

* tfdoc

* remove stale variables

* fix blueprint

* variable description
This commit is contained in:
Ludovico Magnocavallo
2023-09-19 18:56:51 +02:00
committed by GitHub
parent 96c28e605b
commit df5daab6cc
33 changed files with 622 additions and 289 deletions

View File

@@ -14,20 +14,20 @@ This example shows how to reference existing Managed Infrastructure Groups (MIGs
```hcl
module "instance_template" {
source = "./fabric/modules/compute-vm"
project_id = var.project_id
create_template = true
name = "vm-test"
service_account_create = true
zone = "europe-west1-b"
source = "./fabric/modules/compute-vm"
project_id = var.project_id
zone = "europe-west1-b"
name = "vm-test"
create_template = true
service_account = {
auto_create = true
}
network_interfaces = [
{
network = var.vpc.self_link
subnetwork = var.subnet.self_link
}
]
tags = [
"http-server"
]