I'm trying to make a simple script to switch GCP Projects with GCLOUD in a similar vein to KUBECTX\NS does with KUBECTL.
Thus, simply to take a positional script parameter ($1) value to access the project-id value from a predefined variable.
so executing such as: > sh gcp-proj.sh dev
e.g.
#!/bin/bash
DEV="google-project-dev"
TEST="google-project-test"
gcloud config set [this would be one of the above values, but using the variable name referenced from $1]
How do I map $1 (dev) to the DEV variable and put the variable value into the above placeholder?