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