Skip to content
Merged
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
17 changes: 0 additions & 17 deletions spartan/terraform/gke-cluster/network-ingress.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ locals {
devnet_offset = 6 # deprecated. Naming has changed

devnets = [
"v4-devnet-1",
"v4-devnet-2"
]
}
Expand All @@ -100,10 +99,6 @@ resource "google_compute_global_address" "devnet_n_rpc_ip" {
count = 1
name = "devnet-${count.index + local.devnet_offset}-rpc-ip"
description = "Static IP for devnet ${count.index + local.devnet_offset} network RPC ingress"

lifecycle {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to remove this protection?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

devnets come and go, otherwise I'd have to manually delete the IP address & cert via the Web console and then sync terraform state 😢

prevent_destroy = true
}
}

# deprecated
Expand All @@ -115,20 +110,12 @@ resource "google_compute_managed_ssl_certificate" "devnet_n_rpc_cert" {
managed {
domains = ["devnet-${count.index + local.devnet_offset}.aztec-labs.com"]
}

lifecycle {
prevent_destroy = true
}
}

resource "google_compute_global_address" "devnet_network_rpc_ip" {
for_each = toset(local.devnets)
name = "${each.key}-rpc-ip"
description = "Static IP for ${each.key} RPC ingress"

lifecycle {
prevent_destroy = true
}
}

resource "google_compute_managed_ssl_certificate" "devnet_network_rpc_cert" {
Expand All @@ -139,8 +126,4 @@ resource "google_compute_managed_ssl_certificate" "devnet_network_rpc_cert" {
managed {
domains = ["${each.key}.aztec-labs.com"]
}

lifecycle {
prevent_destroy = true
}
}
Loading