fix handling default values
This commit is contained in:
parent
b1956403d0
commit
e02d871d58
|
@ -109,7 +109,7 @@ The above command will delete the associated resources so there will be no billa
|
||||||
| [producer_a_project_id](variables.tf#L28) | The producer A project, in which the LB, PSC Service Attachment and Cloud Run service should be created. | <code>string</code> | ✓ | |
|
| [producer_a_project_id](variables.tf#L28) | The producer A project, in which the LB, PSC Service Attachment and Cloud Run service should be created. | <code>string</code> | ✓ | |
|
||||||
| [producer_b_project_id](variables.tf#L33) | The producer B project, in which the LB, PSC Service Attachment and Cloud Run service should be created. | <code>string</code> | ✓ | |
|
| [producer_b_project_id](variables.tf#L33) | The producer B project, in which the LB, PSC Service Attachment and Cloud Run service should be created. | <code>string</code> | ✓ | |
|
||||||
| [region](variables.tf#L47) | The GCP region in which the resources should be deployed. | <code>string</code> | ✓ | |
|
| [region](variables.tf#L47) | The GCP region in which the resources should be deployed. | <code>string</code> | ✓ | |
|
||||||
| [prefix](variables.tf#L22) | Prefix used for resource names. | <code>string</code> | | <code>""</code> |
|
| [prefix](variables.tf#L22) | Prefix used for resource names. | <code>string</code> | | <code>null</code> |
|
||||||
| [project_create_config](variables.tf#L38) | Create project instead of using an existing one. | <code title="object({ billing_account = string parent = optional(string) })">object({…})</code> | | <code>null</code> |
|
| [project_create_config](variables.tf#L38) | Create project instead of using an existing one. | <code title="object({ billing_account = string parent = optional(string) })">object({…})</code> | | <code>null</code> |
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
|
@ -19,8 +19,8 @@ module "consumer-project" {
|
||||||
name = var.consumer_project_id
|
name = var.consumer_project_id
|
||||||
project_create = var.project_create_config != null
|
project_create = var.project_create_config != null
|
||||||
|
|
||||||
billing_account = try(var.project_create_config.billing_account)
|
billing_account = try(var.project_create_config.billing_account, null)
|
||||||
parent = try(var.project_create_config.parent)
|
parent = try(var.project_create_config.parent, null)
|
||||||
prefix = var.prefix
|
prefix = var.prefix
|
||||||
services = [
|
services = [
|
||||||
"iam.googleapis.com",
|
"iam.googleapis.com",
|
||||||
|
|
|
@ -19,8 +19,8 @@ module "producer-project" {
|
||||||
name = var.producer_project_id
|
name = var.producer_project_id
|
||||||
project_create = var.project_create_config != null
|
project_create = var.project_create_config != null
|
||||||
|
|
||||||
billing_account = try(var.project_create_config.billing_account)
|
billing_account = try(var.project_create_config.billing_account, null)
|
||||||
parent = try(var.project_create_config.parent)
|
parent = try(var.project_create_config.parent, null)
|
||||||
prefix = var.prefix
|
prefix = var.prefix
|
||||||
services = [
|
services = [
|
||||||
"iam.googleapis.com",
|
"iam.googleapis.com",
|
||||||
|
|
|
@ -22,7 +22,7 @@ variable "consumer_project_id" {
|
||||||
variable "prefix" {
|
variable "prefix" {
|
||||||
description = "Prefix used for resource names."
|
description = "Prefix used for resource names."
|
||||||
type = string
|
type = string
|
||||||
default = ""
|
default = null
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "producer_a_project_id" {
|
variable "producer_a_project_id" {
|
||||||
|
|
Loading…
Reference in New Issue