Skip to content

Commit c906fc5

Browse files
Update gcloud command syntax and version
1 parent bf2b5fb commit c906fc5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/airflow_pool/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
*/
1616

1717
locals {
18-
gcloud_cmd_body = "composer environments run --project=${var.project_id} --location=${var.region} ${var.composer_env_name} pool"
19-
create_cmd_body = "${local.gcloud_cmd_body} -- --set ${jsonencode(var.pool_name)} ${jsonencode(var.slot_count)} ${jsonencode(var.description)}"
20-
destroy_cmd_body = "${local.gcloud_cmd_body} -- --delete ${jsonencode(var.pool_name)}"
18+
gcloud_cmd_body = "composer environments run --project=${var.project} --location=${var.region} ${var.composer_env_name} pools"
19+
create_cmd_body = "${local.gcloud_cmd_body} -- set ${jsonencode(var.pool_name)} ${jsonencode(var.slot_count)} ${jsonencode(var.description)}"
20+
destroy_cmd_body = "${local.gcloud_cmd_body} -- delete ${jsonencode(var.pool_name)}"
2121
}
2222

2323
module "gcloud" {
2424
source = "terraform-google-modules/gcloud/google"
25-
version = "~> 3.1"
25+
version = "~> 4.0"
2626
platform = "linux"
2727
create_cmd_body = local.create_cmd_body
2828
destroy_cmd_body = local.destroy_cmd_body

0 commit comments

Comments
 (0)