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
  • 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
  • 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 comment

Turn on JavaScript to leave a comment.

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

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company
Exit mobile version
%%footer%%