sandbox: remove terraform config
Remove terraform config artifact that no longer seems to be in use.
The terraform state bucket was previously deleted, and someone has
since re-registered it. If we ever need to bring this back, the state
bucket need to be changed to something else.
Change-Id: I4385909039d16a4958638ee9c3a9b26ed8e96c17
Reviewed-on: https://go-review.googlesource.com/c/playground/+/465875
Auto-Submit: Roland Shoemaker <roland@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Bypass: Roland Shoemaker <roland@golang.org>
diff --git a/sandbox/sandbox.tf b/sandbox/sandbox.tf
deleted file mode 100644
index 4b8f839..0000000
--- a/sandbox/sandbox.tf
+++ /dev/null
@@ -1,111 +0,0 @@
-# TODO: move the network configuration into terraform too? It was created by hand with:
-# gcloud compute networks subnets update golang --region=us-central1 --enable-private-ip-google-access
-#
-
-terraform {
- backend "gcs" {
- bucket = "tf-state-prod-golang-org"
- prefix = "terraform/state"
- }
-}
-
-provider "google-beta" {
- project = "golang-org"
- region = "us-central1"
- zone = "us-central1-f"
-}
-
-provider "google" {
- project = "golang-org"
- region = "us-central1"
- zone = "us-central1-f"
-}
-
-data "local_file" "cloud_init" {
- filename = "${path.module}/cloud-init.yaml"
-}
-
-data "local_file" "konlet" {
- filename = "${path.module}/konlet.yaml.expanded"
-}
-
-data "google_compute_image" "cos" {
- family = "cos-stable"
- project = "cos-cloud"
-}
-
-resource "google_compute_instance_template" "inst_tmpl" {
- name_prefix = "play-sandbox-tmpl"
- machine_type = "e2-standard-8"
- metadata = {
- "gce-container-declaration" = data.local_file.konlet.content
- "user-data" = data.local_file.cloud_init.content
- }
- network_interface {
- network = "golang"
- }
- service_account {
- scopes = ["logging-write", "storage-ro", "monitoring-write"]
- }
- disk {
- source_image = data.google_compute_image.cos.self_link
- auto_delete = true
- boot = true
- }
- scheduling {
- automatic_restart = true
- on_host_maintenance = "MIGRATE"
- }
- lifecycle {
- create_before_destroy = true
- }
-}
-
-resource "google_compute_region_autoscaler" "default" {
- provider = google-beta
-
- name = "play-sandbox-autoscaler"
- region = "us-central1"
- target = google_compute_region_instance_group_manager.rigm.self_link
-
- autoscaling_policy {
- max_replicas = 10
- min_replicas = 3
- cooldown_period = 60
-
- cpu_utilization {
- target = 0.5
- }
- }
-}
-
-resource "google_compute_region_instance_group_manager" "rigm" {
- provider = google-beta
- name = "play-sandbox-rigm"
-
- base_instance_name = "playsandbox"
- region = "us-central1"
-
- version {
- name = "primary"
- instance_template = google_compute_instance_template.inst_tmpl.self_link
- }
-
- named_port {
- name = "http"
- port = 80
- }
- update_policy {
- type = "PROACTIVE"
- instance_redistribution_type = "PROACTIVE"
- minimal_action = "REPLACE"
- max_surge_fixed = 10
- max_unavailable_fixed = 0
- min_ready_sec = 60
- }
-}
-
-data "google_compute_region_instance_group" "rig" {
- provider = google-beta
- self_link = google_compute_region_instance_group_manager.rigm.instance_group
-}