Skip to content

Commit

Permalink
Binauthz blueprint fixes related to project creation
Browse files Browse the repository at this point in the history
  • Loading branch information
apichick committed Nov 22, 2022
1 parent ad7a0bb commit 5ba65b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions blueprints/gke/binauthz/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ module "project" {
? var.project_create.parent
: null
)
prefix = var.project_create == null ? null : var.prefix
name = var.project_id
project_create = var.project_create != null
prefix = var.project_create == null ? null : var.prefix
name = var.project_id
services = [
"artifactregistry.googleapis.com",
"binaryauthorization.googleapis.com",
Expand Down
5 changes: 4 additions & 1 deletion tests/blueprints/gke/binauthz/fixture/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ variable "project_create" {
billing_account_id = string
parent = string
})
default = null
default = {
billing_account_id = "12345-12345-12345"
parent = "folders/123456789"
}
}

variable "project_id" {
Expand Down

0 comments on commit 5ba65b9

Please sign in to comment.