DevOps Classroomnotes 31/Jul/2023

Terraform contd

ntier network in Azure

  • Manual steps:
    • Create a resource group
    • Create a vnet Refer Here for screenshots
    • network: 10.10.0.0/16
      • subnets:
        • web: 10.10.0.0/24
        • app: 10.10.1.0/24
        • db: 10.10.2.0/24
          Preview
  • Terraform implementation:
    • Refer Here for basic strucuture and terraform constraints added
    • Refer Here for resource definitions done
      Preview
    • Refer Here for the variables added
    • To pass input variables we have two options
    • option 1: from cli directly using -var terraform apply -var 'resource_group_name=ntier-dev' -var 'location=eastus'
    • option 2: create a file with variable values Refer Here. Refer Here for the changes to accomodate ntier with tfvars

Terraform concepts

  • Terraform block: Refer Here.
    • Terraform block can help in setting provider requirements Refer Here as well as terraform requirements Refer Here.
    • There are other areas as well, which we will be discussing in later parts fo course
  • Version constraints: Refer Here
  • Data types: Refer Here
  • Terraform input variables Refer Here

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