GCP Classroom Series – 16/Apr/2021

Using references in Google Deployment manager

  • To access the properties of the resources created with in a template we can use references the syntax is $(ref.RESOURCE_NAME.PROPERTY)
  • Refer Here for the changeset which create network and uses its dependencies in the firewall
  • Now create the deployment Preview

Adding output to templates and configurations

  • Refer Here for the official documentation
  • Refer Here for the sample created
  • Now lets go back to scenario-1

Scenario 1:

  • Create a GCP deployment with templates and a configuration
    • to create a network
    • to create firewall rules to allow
      • http and https to all instances
      • ssh to instances with network tag allowssh
      • open everything to instances with network tag openall
    • to create a vm with ubuntu and public ip
    • to create a vm with centos and private ip
  • refactor the scenario1 with the output and references as we learnt in this session.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Network Widget by Acurax Small Business Website Designers

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube