DevOps Classroom notes 16/Dec/2023

Terraform contd

Terraform Hashicorp configuration language (HCL)

Activity: Creating a ntier network in Azure

  • Create a network as shown below
    Preview
  • Manual steps

    1. Creating a resource group
    2. Create a vnet with cidr range (address space)
    3. Add subnets to vnet
  • For screenshots refer classroom video.

Writing terraform template for the same (Creating ntier in azure)

  • Terraform block Refer Here
  • Using terraform block we can put restriction on terraform version and also terraform providers version
  • While writing terraform template:
    • copy paste’s should be avoided
    • hardcoding the values
  • Refer Here for the first version
  • Refer Here for the changes with format
  • When we executed apply, the resource creation failed and the reason is we need to specify order of creation.

Activity: Creating a ntier network (VPC) in AWS

  • Create a network as shown below
    Preview
  • Manual steps:

    1. Create a vpc with cidr range mentioned
    2. Add subnets to vpc
  • For screenshots refer classroom video.

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 Responsive Web Designing 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