SlideShare a Scribd company logo
Using GCP Deployment Manager to deploy resources
Requirement: Deploy VM instances along with firewall rules, to servers in US and EU using Google Cloud Shell
Environment: GCP Console, GCP Shell, Deployment Manager, YAML and JINJA files
Key results: Login using your GCP subscription, create or reuse earlier VM instances and follow the below
From Shell, create a folder dminfra using mkdir command, change dir to dminfra and open Shell Editor. Using the editor
create 2 new files in the dminfra directory called config.yaml and instance-template.jinja
Copy the file contents as below (see that your Editor does not show YAML syntax errors):
CONFIG.YAML
imports:
- path: instance-template.jinja
resources:
# Create the auto-mode network
- name: mynetwork
type: compute.v1.network
properties:
autoCreateSubnetworks: true
# Create the firewall rule
- name: mynetwork-allow-http-ssh-rdp-icmp
type: compute.v1.firewall
properties:
network: $(ref.mynetwork.selfLink)
sourceRanges: ["0.0.0.0/0"]
allowed:
- IPProtocol: TCP
ports: [22, 80, 3389]
- IPProtocol: ICMP
# Create the mynet-us-vm instance
- name: mynet-us-vm
type: instance-template.jinja
properties:
zone: us-central1-a
machineType: n1-standard-1
network: $(ref.mynetwork.selfLink)
subnetwork: regions/us-central1/subnetworks/mynetwork
# Create the mynet-eu-vm instance
- name: mynet-eu-vm
type: instance-template.jinja
properties:
zone: europe-west1-d
machineType: n1-standard-1
network: $(ref.mynetwork.selfLink)
subnetwork: regions/europe-west1/subnetworks/mynetwork
//
INSTANCE-TEMPLATE.JINJA
resources:
- name: {{ env["name"] }}
type: compute.v1.instance
properties:
machineType: zones/{{ properties["zone"] }}/machineTypes/{{ properties["machineType"] }}
zone: {{ properties["zone"] }}
networkInterfaces:
- network: {{ properties["network"] }}
subnetwork: {{ properties["subnetwork"] }}
accessConfigs:
- name: External NAT
type: ONE_TO_ONE_NAT
disks:
- deviceName: {{ env["name"] }}
type: PERSISTENT
boot: true
autoDelete: true
initializeParams:
sourceImage: https://www.googleapis.com/compute/v1/projects/debian-cloud/global/images/family/debian-9
//
Exit Shell Editor and from the Shell prompt enter the command
gcloud deployment-manager deployments create dminfra --config=config.yaml --preview
If all is well, you should get the above results, if not there might be issue in syntax or some properties/ resources is missing;
use below command to delete any earlier deployment and redeploy. Correct syntax errors in any like TAB SPACES in YAML file
gcloud deployment-manager deployments delete dminfra - Please delete earlier failed deployment for new deployment
Once errors are gone in PREVIEW, now do actual deployment using update command:
gcloud deployment-manager deployments update dminfra
For your reference below are the screenshots of the two files:
Hope you will be able to launch various resources using templates, instead of manually creating them from Google Console
GUI.
Disclaimer: All the above content is part of the Google Cloud Platform and used here for study and demonstration purpose
only. Prepared and executed by Bhadale IT Pvt Ltd in GCP

More Related Content

What's hot

Server-410_RatanMohapatra
Server-410_RatanMohapatraServer-410_RatanMohapatra
Server-410_RatanMohapatra
Ratan Mohapatra
 
Query to find permspace to all databases
Query to find permspace to all databasesQuery to find permspace to all databases
Query to find permspace to all databases
Naresh Chandra Kumar
 
Setup ip address manually using nmcli command
Setup ip address manually using nmcli commandSetup ip address manually using nmcli command
Setup ip address manually using nmcli command
Ganesh Bhosale
 

What's hot (19)

Drupal Development with Docker
Drupal Development with DockerDrupal Development with Docker
Drupal Development with Docker
 
Building images from dockerfiles
Building images from dockerfilesBuilding images from dockerfiles
Building images from dockerfiles
 
New Ways to Find Latency in Linux Using Tracing
New Ways to Find Latency in Linux Using TracingNew Ways to Find Latency in Linux Using Tracing
New Ways to Find Latency in Linux Using Tracing
 
Server-410_RatanMohapatra
Server-410_RatanMohapatraServer-410_RatanMohapatra
Server-410_RatanMohapatra
 
08 2020 - vm scale set dns
08 2020 - vm scale set dns08 2020 - vm scale set dns
08 2020 - vm scale set dns
 
Step by step enabling automatic dhcp server backup
Step by step enabling automatic dhcp server backupStep by step enabling automatic dhcp server backup
Step by step enabling automatic dhcp server backup
 
Feb 2010 Intro To Remoteing Part1
Feb 2010 Intro To Remoteing Part1Feb 2010 Intro To Remoteing Part1
Feb 2010 Intro To Remoteing Part1
 
Presentation Linux Server setup Advance Networking
Presentation   Linux Server setup Advance NetworkingPresentation   Linux Server setup Advance Networking
Presentation Linux Server setup Advance Networking
 
mail server
mail servermail server
mail server
 
Query to find permspace to all databases
Query to find permspace to all databasesQuery to find permspace to all databases
Query to find permspace to all databases
 
Devry gsp 215 week 7 homework networking commands new
Devry gsp 215 week 7 homework networking commands newDevry gsp 215 week 7 homework networking commands new
Devry gsp 215 week 7 homework networking commands new
 
Streaming Replication Made Easy in v9.3
Streaming Replication Made Easy in v9.3Streaming Replication Made Easy in v9.3
Streaming Replication Made Easy in v9.3
 
Half a year with contrail at production
Half a year with contrail at productionHalf a year with contrail at production
Half a year with contrail at production
 
April 2010-intro-to-remoting-part2
April 2010-intro-to-remoting-part2April 2010-intro-to-remoting-part2
April 2010-intro-to-remoting-part2
 
Docker
DockerDocker
Docker
 
Introduction to ns2
Introduction to ns2Introduction to ns2
Introduction to ns2
 
Setup ip address manually using nmcli command
Setup ip address manually using nmcli commandSetup ip address manually using nmcli command
Setup ip address manually using nmcli command
 
Devry gsp 215 week 7 homework networking commands new
Devry gsp 215 week 7 homework networking commands newDevry gsp 215 week 7 homework networking commands new
Devry gsp 215 week 7 homework networking commands new
 
Linux kernel memory allocators
Linux kernel memory allocatorsLinux kernel memory allocators
Linux kernel memory allocators
 

Similar to GCP Deployment Manager Demo

Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Tenchi Security
 
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Alexandre Sieira
 

Similar to GCP Deployment Manager Demo (20)

Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1
 
OSDC 2015: Matthias Klein | How to use Open Source Software to have near Prod...
OSDC 2015: Matthias Klein | How to use Open Source Software to have near Prod...OSDC 2015: Matthias Klein | How to use Open Source Software to have near Prod...
OSDC 2015: Matthias Klein | How to use Open Source Software to have near Prod...
 
Magento 2 Development
Magento 2 DevelopmentMagento 2 Development
Magento 2 Development
 
FOSDEM'17: Disaster Recovery Management with ReaR (relax-and-recover) & DRLM ...
FOSDEM'17: Disaster Recovery Management with ReaR (relax-and-recover) & DRLM ...FOSDEM'17: Disaster Recovery Management with ReaR (relax-and-recover) & DRLM ...
FOSDEM'17: Disaster Recovery Management with ReaR (relax-and-recover) & DRLM ...
 
A Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxA Glance At The Java Performance Toolbox
A Glance At The Java Performance Toolbox
 
Backbase CXP Manager Setup
Backbase CXP Manager SetupBackbase CXP Manager Setup
Backbase CXP Manager Setup
 
Mastering Grails 3 Plugins - GR8Conf US 2016
Mastering Grails 3 Plugins - GR8Conf US 2016Mastering Grails 3 Plugins - GR8Conf US 2016
Mastering Grails 3 Plugins - GR8Conf US 2016
 
Mastering Grails 3 Plugins - G3 Summit 2016
Mastering Grails 3 Plugins - G3 Summit 2016Mastering Grails 3 Plugins - G3 Summit 2016
Mastering Grails 3 Plugins - G3 Summit 2016
 
ClickHouse on Kubernetes, by Alexander Zaitsev, Altinity CTO
ClickHouse on Kubernetes, by Alexander Zaitsev, Altinity CTOClickHouse on Kubernetes, by Alexander Zaitsev, Altinity CTO
ClickHouse on Kubernetes, by Alexander Zaitsev, Altinity CTO
 
Improving your Drupal 8 development workflow DrupalCampLA
Improving your Drupal 8 development workflow DrupalCampLAImproving your Drupal 8 development workflow DrupalCampLA
Improving your Drupal 8 development workflow DrupalCampLA
 
Drupal VM for Drupal 8 Dev - Drupal Camp STL 2017
Drupal VM for Drupal 8 Dev - Drupal Camp STL 2017Drupal VM for Drupal 8 Dev - Drupal Camp STL 2017
Drupal VM for Drupal 8 Dev - Drupal Camp STL 2017
 
Mastering Grails 3 Plugins - Greach 2016
Mastering Grails 3 Plugins - Greach 2016Mastering Grails 3 Plugins - Greach 2016
Mastering Grails 3 Plugins - Greach 2016
 
Mastering Grails 3 Plugins - GR8Conf EU 2016
Mastering Grails 3 Plugins - GR8Conf EU 2016Mastering Grails 3 Plugins - GR8Conf EU 2016
Mastering Grails 3 Plugins - GR8Conf EU 2016
 
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
 
CI-CD WITH GITLAB WORKFLOW
CI-CD WITH GITLAB WORKFLOWCI-CD WITH GITLAB WORKFLOW
CI-CD WITH GITLAB WORKFLOW
 
Adrian Mouat - Docker Tips and Tricks
 Adrian Mouat - Docker Tips and Tricks Adrian Mouat - Docker Tips and Tricks
Adrian Mouat - Docker Tips and Tricks
 
Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020
 
kubernetes practice
kubernetes practicekubernetes practice
kubernetes practice
 
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
 
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
 

More from Vijayananda Mohire

Bhadale IT Cloud Solutions for Agriculture
Bhadale IT Cloud Solutions for AgricultureBhadale IT Cloud Solutions for Agriculture
Bhadale IT Cloud Solutions for Agriculture
Vijayananda Mohire
 

More from Vijayananda Mohire (20)

Quantum Algorithms for Electronics - IEEE Certificate
Quantum Algorithms for Electronics - IEEE CertificateQuantum Algorithms for Electronics - IEEE Certificate
Quantum Algorithms for Electronics - IEEE Certificate
 
NexGen Solutions for cloud platforms, powered by GenQAI
NexGen Solutions for cloud platforms, powered by GenQAINexGen Solutions for cloud platforms, powered by GenQAI
NexGen Solutions for cloud platforms, powered by GenQAI
 
Certificate- Peer Review of Book Chapter on ML
Certificate- Peer Review of Book Chapter on MLCertificate- Peer Review of Book Chapter on ML
Certificate- Peer Review of Book Chapter on ML
 
Key projects Data Science and Engineering
Key projects Data Science and EngineeringKey projects Data Science and Engineering
Key projects Data Science and Engineering
 
Key projects Data Science and Engineering
Key projects Data Science and EngineeringKey projects Data Science and Engineering
Key projects Data Science and Engineering
 
Bhadale IT Hub-Multi Cloud and Multi QAI
Bhadale IT Hub-Multi Cloud and Multi QAIBhadale IT Hub-Multi Cloud and Multi QAI
Bhadale IT Hub-Multi Cloud and Multi QAI
 
My key hands-on projects in Quantum, and QAI
My key hands-on projects in Quantum, and QAIMy key hands-on projects in Quantum, and QAI
My key hands-on projects in Quantum, and QAI
 
Azure Quantum Workspace for developing Q# based quantum circuits
Azure Quantum Workspace for developing Q# based quantum circuitsAzure Quantum Workspace for developing Q# based quantum circuits
Azure Quantum Workspace for developing Q# based quantum circuits
 
Key projects in AI, ML and Generative AI
Key projects in AI, ML and Generative AIKey projects in AI, ML and Generative AI
Key projects in AI, ML and Generative AI
 
My Journey towards Artificial Intelligence
My Journey towards Artificial IntelligenceMy Journey towards Artificial Intelligence
My Journey towards Artificial Intelligence
 
Bhadale IT Cloud Solutions for Agriculture
Bhadale IT Cloud Solutions for AgricultureBhadale IT Cloud Solutions for Agriculture
Bhadale IT Cloud Solutions for Agriculture
 
Bhadale IT Cloud Solutions for Agriculture
Bhadale IT Cloud Solutions for AgricultureBhadale IT Cloud Solutions for Agriculture
Bhadale IT Cloud Solutions for Agriculture
 
Bhadale IT Intel and Azure Cloud Offerings
Bhadale IT Intel and Azure Cloud OfferingsBhadale IT Intel and Azure Cloud Offerings
Bhadale IT Intel and Azure Cloud Offerings
 
GitHub Copilot-vijaymohire
GitHub Copilot-vijaymohireGitHub Copilot-vijaymohire
GitHub Copilot-vijaymohire
 
Practical ChatGPT From Use Cases to Prompt Engineering & Ethical Implications
Practical ChatGPT From Use Cases to Prompt Engineering & Ethical ImplicationsPractical ChatGPT From Use Cases to Prompt Engineering & Ethical Implications
Practical ChatGPT From Use Cases to Prompt Engineering & Ethical Implications
 
Cloud Infrastructure - Partner Delivery Accelerator (APAC)
Cloud Infrastructure - Partner Delivery Accelerator (APAC)Cloud Infrastructure - Partner Delivery Accelerator (APAC)
Cloud Infrastructure - Partner Delivery Accelerator (APAC)
 
Red Hat Sales Specialist - Red Hat Enterprise Linux
Red Hat Sales Specialist - Red Hat Enterprise LinuxRed Hat Sales Specialist - Red Hat Enterprise Linux
Red Hat Sales Specialist - Red Hat Enterprise Linux
 
RedHat_Transcript_Jan_2024
RedHat_Transcript_Jan_2024RedHat_Transcript_Jan_2024
RedHat_Transcript_Jan_2024
 
Generative AI Business Transformation
Generative AI Business TransformationGenerative AI Business Transformation
Generative AI Business Transformation
 
Microsoft Learn Transcript Jan 2024- vijaymohire
Microsoft Learn Transcript Jan 2024- vijaymohireMicrosoft Learn Transcript Jan 2024- vijaymohire
Microsoft Learn Transcript Jan 2024- vijaymohire
 

Recently uploaded

Islamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docx
Islamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docx
Islamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docx
amilabibi1
 
TitleD,R Abortion Clinic In Bulawayo⋑ +263778731218,/////Abortion Pills In .B...
TitleD,R Abortion Clinic In Bulawayo⋑ +263778731218,/////Abortion Pills In .B...TitleD,R Abortion Clinic In Bulawayo⋑ +263778731218,/////Abortion Pills In .B...
TitleD,R Abortion Clinic In Bulawayo⋑ +263778731218,/////Abortion Pills In .B...
sisternakatoto
 

Recently uploaded (20)

BEst VASHIKARAN SPECIALIST 9463629203 in UK Baba ji Love Marriage problem sol...
BEst VASHIKARAN SPECIALIST 9463629203 in UK Baba ji Love Marriage problem sol...BEst VASHIKARAN SPECIALIST 9463629203 in UK Baba ji Love Marriage problem sol...
BEst VASHIKARAN SPECIALIST 9463629203 in UK Baba ji Love Marriage problem sol...
 
Nature’s Paradise Glamorous And Sustainable Designs For Your Outdoor Living S...
Nature’s Paradise Glamorous And Sustainable Designs For Your Outdoor Living S...Nature’s Paradise Glamorous And Sustainable Designs For Your Outdoor Living S...
Nature’s Paradise Glamorous And Sustainable Designs For Your Outdoor Living S...
 
Chandigarh call garal serives 9512450098
Chandigarh call garal serives 9512450098Chandigarh call garal serives 9512450098
Chandigarh call garal serives 9512450098
 
Embracing the Digital Coven: Exploring Online Wicca Courses
Embracing the Digital Coven: Exploring Online Wicca CoursesEmbracing the Digital Coven: Exploring Online Wicca Courses
Embracing the Digital Coven: Exploring Online Wicca Courses
 
Islamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docx
Islamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docx
Islamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docx
 
Get your dream bridal look with top North Indian makeup artist - Pallavi Kadale
Get your dream bridal look with top North Indian makeup artist - Pallavi KadaleGet your dream bridal look with top North Indian makeup artist - Pallavi Kadale
Get your dream bridal look with top North Indian makeup artist - Pallavi Kadale
 
Business Solutions with .NET Development in Quantum Computing.pdf
Business Solutions with .NET Development in Quantum Computing.pdfBusiness Solutions with .NET Development in Quantum Computing.pdf
Business Solutions with .NET Development in Quantum Computing.pdf
 
ACDC Infra - A Green Energy Company in Delhi NCR
ACDC Infra - A Green Energy Company in Delhi NCRACDC Infra - A Green Energy Company in Delhi NCR
ACDC Infra - A Green Energy Company in Delhi NCR
 
TitleD,R Abortion Clinic In Bulawayo⋑ +263778731218,/////Abortion Pills In .B...
TitleD,R Abortion Clinic In Bulawayo⋑ +263778731218,/////Abortion Pills In .B...TitleD,R Abortion Clinic In Bulawayo⋑ +263778731218,/////Abortion Pills In .B...
TitleD,R Abortion Clinic In Bulawayo⋑ +263778731218,/////Abortion Pills In .B...
 
WORK PERMIT IN BULGARIA | Work Visa Services
WORK PERMIT IN BULGARIA | Work Visa ServicesWORK PERMIT IN BULGARIA | Work Visa Services
WORK PERMIT IN BULGARIA | Work Visa Services
 
Hire RoR Developers - ☎ +1 9177322215
Hire RoR Developers  -  ☎  +1 9177322215Hire RoR Developers  -  ☎  +1 9177322215
Hire RoR Developers - ☎ +1 9177322215
 
4 Reasons Behind the Toilet Blockage.pdf
4 Reasons Behind the Toilet Blockage.pdf4 Reasons Behind the Toilet Blockage.pdf
4 Reasons Behind the Toilet Blockage.pdf
 
Earthmovers: Top Earth Moving Equipments
Earthmovers: Top Earth Moving EquipmentsEarthmovers: Top Earth Moving Equipments
Earthmovers: Top Earth Moving Equipments
 
ANTIVIRUS IS A SOFTWARE|basics protection
ANTIVIRUS IS A SOFTWARE|basics protectionANTIVIRUS IS A SOFTWARE|basics protection
ANTIVIRUS IS A SOFTWARE|basics protection
 
New Portal - Task - Create Backlinks.docx
New Portal - Task - Create Backlinks.docxNew Portal - Task - Create Backlinks.docx
New Portal - Task - Create Backlinks.docx
 
Are Gutters Necessary? Explore the details now!
Are Gutters Necessary? Explore the details now!Are Gutters Necessary? Explore the details now!
Are Gutters Necessary? Explore the details now!
 
UbiBot Pricing Flexible Purchase Options And Transparent Prices - UbiBot.pptx
UbiBot Pricing Flexible Purchase Options And Transparent Prices - UbiBot.pptxUbiBot Pricing Flexible Purchase Options And Transparent Prices - UbiBot.pptx
UbiBot Pricing Flexible Purchase Options And Transparent Prices - UbiBot.pptx
 
NEWMAT Stretch Ceilings Service Provider in India
NEWMAT Stretch Ceilings Service Provider in IndiaNEWMAT Stretch Ceilings Service Provider in India
NEWMAT Stretch Ceilings Service Provider in India
 
Are Seamless Gutters Worth It? Explore now
Are Seamless Gutters Worth It? Explore  nowAre Seamless Gutters Worth It? Explore  now
Are Seamless Gutters Worth It? Explore now
 
Courier & Package Tracking System Actually Works
Courier & Package Tracking System Actually WorksCourier & Package Tracking System Actually Works
Courier & Package Tracking System Actually Works
 

GCP Deployment Manager Demo

  • 1. Using GCP Deployment Manager to deploy resources Requirement: Deploy VM instances along with firewall rules, to servers in US and EU using Google Cloud Shell Environment: GCP Console, GCP Shell, Deployment Manager, YAML and JINJA files Key results: Login using your GCP subscription, create or reuse earlier VM instances and follow the below From Shell, create a folder dminfra using mkdir command, change dir to dminfra and open Shell Editor. Using the editor create 2 new files in the dminfra directory called config.yaml and instance-template.jinja Copy the file contents as below (see that your Editor does not show YAML syntax errors): CONFIG.YAML imports: - path: instance-template.jinja resources: # Create the auto-mode network - name: mynetwork type: compute.v1.network properties: autoCreateSubnetworks: true # Create the firewall rule - name: mynetwork-allow-http-ssh-rdp-icmp type: compute.v1.firewall properties: network: $(ref.mynetwork.selfLink) sourceRanges: ["0.0.0.0/0"]
  • 2. allowed: - IPProtocol: TCP ports: [22, 80, 3389] - IPProtocol: ICMP # Create the mynet-us-vm instance - name: mynet-us-vm type: instance-template.jinja properties: zone: us-central1-a machineType: n1-standard-1 network: $(ref.mynetwork.selfLink) subnetwork: regions/us-central1/subnetworks/mynetwork # Create the mynet-eu-vm instance - name: mynet-eu-vm type: instance-template.jinja properties: zone: europe-west1-d machineType: n1-standard-1 network: $(ref.mynetwork.selfLink) subnetwork: regions/europe-west1/subnetworks/mynetwork //
  • 3. INSTANCE-TEMPLATE.JINJA resources: - name: {{ env["name"] }} type: compute.v1.instance properties: machineType: zones/{{ properties["zone"] }}/machineTypes/{{ properties["machineType"] }} zone: {{ properties["zone"] }} networkInterfaces: - network: {{ properties["network"] }} subnetwork: {{ properties["subnetwork"] }} accessConfigs: - name: External NAT type: ONE_TO_ONE_NAT disks: - deviceName: {{ env["name"] }} type: PERSISTENT boot: true autoDelete: true initializeParams: sourceImage: https://www.googleapis.com/compute/v1/projects/debian-cloud/global/images/family/debian-9 // Exit Shell Editor and from the Shell prompt enter the command gcloud deployment-manager deployments create dminfra --config=config.yaml --preview
  • 4. If all is well, you should get the above results, if not there might be issue in syntax or some properties/ resources is missing; use below command to delete any earlier deployment and redeploy. Correct syntax errors in any like TAB SPACES in YAML file gcloud deployment-manager deployments delete dminfra - Please delete earlier failed deployment for new deployment Once errors are gone in PREVIEW, now do actual deployment using update command: gcloud deployment-manager deployments update dminfra
  • 5. For your reference below are the screenshots of the two files:
  • 6.
  • 7. Hope you will be able to launch various resources using templates, instead of manually creating them from Google Console GUI. Disclaimer: All the above content is part of the Google Cloud Platform and used here for study and demonstration purpose only. Prepared and executed by Bhadale IT Pvt Ltd in GCP