Skip to content

Commit

Permalink
style: format Terraform code for consistency and readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Gezi-lzq committed Nov 19, 2024
1 parent 2bdc50e commit 0ac2464
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions google.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ resource "google_storage_bucket" "automq_byoc_ops_bucket" {
}

data "google_storage_bucket" "ops_bucket" {
depends_on = [ google_storage_bucket.automq_byoc_ops_bucket ]
name = local.automq_ops_bucket
depends_on = [google_storage_bucket.automq_byoc_ops_bucket]
name = local.automq_ops_bucket
}
data "google_storage_bucket" "data_bucket" {
depends_on = [ google_storage_bucket.automq_byoc_data_bucket ]
name = local.automq_data_bucket
depends_on = [google_storage_bucket.automq_byoc_data_bucket]
name = local.automq_data_bucket
}

resource "google_storage_bucket_iam_binding" "automq_data_storage_permission_binding" {
Expand All @@ -108,7 +108,7 @@ resource "google_storage_bucket_iam_binding" "automq_ops_storage_permission_bind
resource "google_compute_network" "automq_network" {
count = var.create_new_vpc ? 1 : 0

name = lower(replace("automq_byoc_vpc_${var.automq_byoc_env_id}", "_", "-"))
name = lower(replace("automq_byoc_vpc_${var.automq_byoc_env_id}", "_", "-"))
project = var.cloud_project_id

auto_create_subnetworks = false
Expand Down Expand Up @@ -411,13 +411,13 @@ locals {
}
data "google_compute_image" "console_image" {
name = lower(
replace(replace(local.console_image_name,
"_", "-"),
".", "-"))
replace(replace(local.console_image_name,
"_", "-"),
".", "-"))
}

data "google_compute_network" "vpc" {
depends_on = [ google_compute_network.automq_network ]
depends_on = [google_compute_network.automq_network]
name = local.automq_byoc_vpc_name
}

Expand Down

0 comments on commit 0ac2464

Please sign in to comment.