Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

fix(module/lb_internal): Remove data source from lb_internal #221

Merged
merged 2 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion modules/lb_internal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ No modules.
| [google-beta_google_compute_region_backend_service.this](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/google_compute_region_backend_service) | resource |
| [google_compute_forwarding_rule.this](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_forwarding_rule) | resource |
| [google_compute_health_check.this](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_health_check) | resource |
| [google_client_config.this](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/client_config) | data source |

### Inputs

Expand Down
4 changes: 1 addition & 3 deletions modules/lb_internal/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
data "google_client_config" "this" {}

resource "google_compute_health_check" "this" {
name = "${var.name}-${data.google_client_config.this.region}-check-tcp${var.health_check_port}"
name = "${var.name}-${var.region}-check-tcp${var.health_check_port}"
project = var.project

tcp_health_check {
Expand Down