DevOps Classroom notes 25/May/2025

Terraform contd

Terraform console

  • Refer Here for using terraform console
  • To launch terrform console, execute terraform console command in directory with .tf files

Implicit depenedency

  • Refer Here for the changes
  • A resource will be dependent on other resource implicitly if the attributes of the other resource are used as arguments.

AWS: Create a VPC with 4 subnets

  • Overview
  • Manual steps

Style Guide & Linting in terraform

  • Lets follow google style guide for terraform Refer Here
  • terraform fmt or format document in vscode
  • updated workflow
    • init
    • fmt
    • validate
    • apply
    • destroy
  • We would be creating the following files in terraform template
    • providers.tf: This file will have all the necessary stuff for configuring providers
    • main.tf: This is where we start with declaring resources
  • Tags for aws
  • Refer Here for the changes done

Exercise:

  • Create a network (Virtual network) in central india with 4 subnets
  • note: in azure there is no need to provide zone while creating subnet
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%%