DevOps Classroomnotes 18/Mar/2023

Terraform contd..

Activity: Create virtual network in Azure

  • Manual Steps:
    • Create resource group
      Preview
      Preview
      Preview
    • Create a VNET with cidr range 192.168.0.0/16
      Preview
      Preview

Writing template for the above in terraform

  • Terraform takes the folder as input and reads all the .tf files and while validating,applying or destroying tries to treat all fo the .tf files as one file.
  • To Create dependencies we can use depends on meta argument Refer Here
  • The resource name in terraform is <resource_type>.<name>
  • Refer Here for the changeset
    Preview
  • Note:
    • The commands which we started following init, fmt, validate, apply

Focus Points

  • To Work effectively with terrform templates we need to understand Hashicorp Configuration Language
  • How to parametrized the template

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Wordpress Development Company

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