Skip to content

Instantly share code, notes, and snippets.

@koduki
Last active October 31, 2019 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koduki/adb04e30ade4c28b1800f590162bd463 to your computer and use it in GitHub Desktop.
Save koduki/adb04e30ade4c28b1800f590162bd463 to your computer and use it in GitHub Desktop.
Provisioning DSL for GCP
deployment:
- name: my-environment-deployment
properties:
region: us-central1
zone: us-central1-f
networks:
- name: "my-network"
properties:
routingConfig:
routingMode: REGIONAL
autoCreateSubnetworks: false
subnetworks:
- name: "dmz"
ipCidrRange: "10.0.0.0/9"
region: us-central1
properties:
privateIpGoogleAccess: false
enableFlowLogs: false
- name: "backend"
ipCidrRange: "172.16.0.0/12"
region: us-central1
properties:
privateIpGoogleAccess: false
enableFlowLogs: false
computes:
- name: "my-instance1"
template: instance-template-template.jinja
network: my-network
subnetwork: "dmz"
region: us-central1
zone: us-central1-f
properties:
machineType: f1-micro
compute-groups:
- name: "my-instance-group"
template: instance-group-template.jinja
network: my-network
subnetwork: "backend"
targetSize: 2
region: us-central1
zone: us-central1-f
properties:
machineType: f1-micro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment