Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

PubSub Snippets

DM

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

Terraform

Setup:

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}"

KRM

Setup:

Testing

sh test_alternatives.sh