Setup:
- Install gcloud
- Create GCP project
- Setup Credential
DM_PROJECT_ID=[DM_PROJECT_ID]
gcloud config set project $DM_PROJECT_ID
gcloud services enable deploymentmanager.googleapis.com
gcloud deployment-manager deployments create d1 --config logging.yaml
Setup:
- Install gcloud
- Install terraform
- Create GCP project
- Setup Credential
TF_PROJECT_ID=[TF_PROJECT_ID]
gcloud config set project $TF_PROJECT_ID
cd alternatives/tf
terraform init
terraform plan -var="deployment=d1" -var="filter=severity >= ERROR" -var="project_id=${TF_PROJECT_ID}"
terraform apply -auto-approve -var="deployment=d1" -var="filter=severity >= ERROR" -var="project_id=${TF_PROJECT_ID}"
sh test_alternatives.sh