Skip to content

Commit 7eb8138

Browse files
committed
style: resource names should use underscores
1 parent 31f5333 commit 7eb8138

File tree

1 file changed

+7
-7
lines changed
  • gke/standard/zonal/reservation

1 file changed

+7
-7
lines changed

gke/standard/zonal/reservation/main.tf

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

1717
# [START gke_standard_zonal_reservation_any_reservation]
18-
resource "google_compute_reservation" "any-reservation" {
18+
resource "google_compute_reservation" "any_reservation" {
1919
name = "any-reservation"
2020
zone = "us-central1-a"
2121

@@ -45,7 +45,7 @@ resource "google_container_cluster" "default" {
4545
}
4646

4747
depends_on = [
48-
google_compute_reservation.any-reservation
48+
google_compute_reservation.any_reservation
4949
]
5050

5151
# Set `deletion_protection` to `true` will ensure that one cannot
@@ -55,7 +55,7 @@ resource "google_container_cluster" "default" {
5555
# [END gke_standard_zonal_reservation_any_cluster]
5656

5757
# [START gke_standard_zonal_reservation_any_node_pool]
58-
resource "google_container_node_pool" "any-node_pool" {
58+
resource "google_container_node_pool" "any_node_pool" {
5959
name = "gke-standard-zonal-any-node-pool"
6060
cluster = google_container_cluster.default.name
6161
location = google_container_cluster.default.location
@@ -72,7 +72,7 @@ resource "google_container_node_pool" "any-node_pool" {
7272
# [END gke_standard_zonal_reservation_any_node_pool]
7373

7474
# [START gke_standard_zonal_reservation_specific_reservation]
75-
resource "google_compute_reservation" "specific-reservation" {
75+
resource "google_compute_reservation" "specific_reservation" {
7676
name = "specific-reservation"
7777
zone = "us-central1-a"
7878

@@ -89,7 +89,7 @@ resource "google_compute_reservation" "specific-reservation" {
8989
# [END gke_standard_zonal_reservation_specific_reservation]
9090

9191
# [START gke_standard_zonal_reservation_specific_node_pool]
92-
resource "google_container_node_pool" "specific-node-pool" {
92+
resource "google_container_node_pool" "specific_node_pool" {
9393
name = "gke-standard-zonal-specific-node-pool"
9494
cluster = google_container_cluster.default.name
9595
location = google_container_cluster.default.location
@@ -101,12 +101,12 @@ resource "google_container_node_pool" "specific-node-pool" {
101101
reservation_affinity {
102102
consume_reservation_type = "SPECIFIC_RESERVATION"
103103
key = "compute.googleapis.com/reservation-name"
104-
values = [google_compute_reservation.specific-reservation.name]
104+
values = [google_compute_reservation.specific_reservation.name]
105105
}
106106
}
107107

108108
depends_on = [
109-
google_compute_reservation.specific-reservation
109+
google_compute_reservation.specific_reservation
110110
]
111111
}
112112
# [END gke_standard_zonal_reservation_specific_node_pool]

0 commit comments

Comments
 (0)