agones.dev/agones@v1.54.0/build/terraform/upgrade/state-bucket/main.tf (about) 1 // Copyright 2024 Google LLC All Rights Reserved. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 16 // Run: 17 // terraform apply -var project="<YOUR_GCP_ProjectID>" 18 19 // GCS bucket for holding the Terraform state of the upgrade test Terraform config. 20 21 terraform { 22 required_version = ">= 1.0.0" 23 required_providers { 24 google = { 25 source = "hashicorp/google" 26 version = "~> 4.25.0" 27 } 28 } 29 } 30 31 variable "project" {} 32 33 resource "google_storage_bucket" "default" { 34 project = var.project 35 name = "${var.project}-upgrade-infra-bucket-tfstate" 36 force_destroy = false 37 uniform_bucket_level_access = true 38 location = "US" 39 storage_class = "STANDARD" 40 versioning { 41 enabled = true 42 } 43 }