fix(infra): Rotate naming to taint old Relay instances (#7739)

The Relay instance template is sticking around because none of its
inputs have changed, so we bump its name.
This commit is contained in:
Jamil
2025-01-12 21:34:18 -08:00
committed by GitHub
parent fdd3533b88
commit 0a1cd92c00
3 changed files with 4 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ locals {
# Create networks
resource "google_compute_network" "network" {
project = module.google-cloud-project.project.project_id
name = "relay"
name = "relays"
routing_mode = "GLOBAL"

View File

@@ -46,7 +46,7 @@ locals {
# Create networks
resource "google_compute_network" "network" {
project = module.google-cloud-project.project.project_id
name = "relay"
name = "relays"
routing_mode = "GLOBAL"
@@ -60,7 +60,7 @@ resource "google_compute_network" "network" {
resource "google_compute_subnetwork" "subnetwork" {
for_each = local.subnet_ip_cidr_ranges
project = module.google-cloud-project.project.project_id
name = "relay-${each.key}"
name = "relays-${each.key}"
region = each.key
network = google_compute_network.network.self_link

View File

@@ -147,7 +147,7 @@ resource "google_compute_instance_template" "application" {
project = var.project_id
name_prefix = "${local.application_name}-${each.key}-"
name_prefix = "${local.application_name}-template-${each.key}-"
description = "This template is used to create ${local.application_name} instances using Terraform."