From 2ba3e3970b3929889c0f8ff2c358ddf9abb94d49 Mon Sep 17 00:00:00 2001 From: nerahou Date: Wed, 14 Jun 2023 11:44:54 +0200 Subject: [PATCH] add init gcs backend script --- init_tf_backend_gcs.sh | 84 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100755 init_tf_backend_gcs.sh diff --git a/init_tf_backend_gcs.sh b/init_tf_backend_gcs.sh new file mode 100755 index 0000000..2df7f1d --- /dev/null +++ b/init_tf_backend_gcs.sh @@ -0,0 +1,84 @@ +#!/bin/bash +# +# The purpose of this script is to provision the resources needed to store +# terraform states on GCS. It will provision a bucket on Google gcs. This backend +# supports state locking by default. +# +# Official documentation about terraform state in gcs => +# https://www.terraform.io/language/settings/backends/gcs + +REGION=eu +NAME= +PROJECT=quortex-199114 +PUBLIC_ACCESS=off +INTERACTIVE=true + +function help() { + cat <