DevOps Classroomnotes 18/Mar/2023

Terraform contd..

Activity: Create virtual network in Azure

  • Manual Steps:
    • Create resource group


    • Create a VNET with cidr range 192.168.0.0/16

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
  • 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 ReplyCancel reply

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

Please turn AdBlock off
Customized Social Media Icons from Acurax Digital Marketing Agency

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Exit mobile version
%%footer%%