Skip to content

Commit

Permalink
Merge branch 'fast-dev' into pf_read_bucket_iam
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoo authored Jan 22, 2025
2 parents 6d48420 + 42a3ee4 commit 93a8c1e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions fast/addons/2-networking-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,5 @@ terraform apply
|---|---|:---:|---|
| [instance_addresses](outputs.tf#L17) | Instance names and addresses. | | |
| [instance_ssh](outputs.tf#L24) | Instance SSH commands. | | |
| [service_account_emails](outputs.tf#L33) | Service account emails. | | |
<!-- END TFDOC -->
5 changes: 3 additions & 2 deletions fast/addons/2-networking-test/context.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ locals {
# recompose subnet ids checking for context substitutions
_subnets = {
for k, v in local._subnet_attrs : k => merge(v, v.region_alias == null ? {} : {
id = try(replace(v.id, v.region, v.region_alias))
id = try(replace(v.id, v.region, v.region_alias))
region = coalesce(v.region_alias, v.region)
})
}
# derive product of instances and zones and expand instance contexts
Expand All @@ -52,7 +53,7 @@ locals {
var.subnet_self_links[v.network_id][local._subnets[v.subnet_id].id],
v.subnet_id
)
zone = "${local._subnets[v.subnet_id].region}-${z}"
zone = "${local._subnets[v.subnet_id].region_alias}-${z}"
})
]
])
Expand Down
7 changes: 7 additions & 0 deletions fast/addons/2-networking-test/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,10 @@ output "instance_ssh" {
)
}
}

output "service_account_emails" {
description = "Service account emails."
value = {
for k, v in module.service-accounts : k => v.email
}
}

0 comments on commit 93a8c1e

Please sign in to comment.