Make `project_id` output non-dynamic
This commit is contained in:
parent
5c47b7c7d3
commit
5e983f55a7
|
@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
|
|||
- add support for a region region in the onprem networking example
|
||||
- **incompatible change** the `attached_disks` variable type has changed in the `compute-vm` module, to add support for regional persistend disks, and attaching existing disks to instances / templates
|
||||
- the hub and spoke via peering example now supports project creation, resource prefix, and GKE peering configuration
|
||||
- make the `project_id` output from the `project` module non-dynamic. This means you can use this output as a key for map fed into a `for_each` (for example, as a key for `iam_project_bindings` in the `iam-service-accounts` module)
|
||||
|
||||
## [4.3.0] - 2021-01-11
|
||||
|
||||
|
|
|
@ -16,8 +16,10 @@
|
|||
|
||||
output "project_id" {
|
||||
description = "Project id."
|
||||
value = try(local.project.project_id, null)
|
||||
value = "${local.prefix}${var.name}"
|
||||
depends_on = [
|
||||
google_project.project,
|
||||
data.google_project.project,
|
||||
google_project_organization_policy.boolean,
|
||||
google_project_organization_policy.list,
|
||||
google_project_service.project_services,
|
||||
|
|
Loading…
Reference in New Issue