DevOps(Day 88) : Create a private subnet using terraform - (entire infrastructure through Terraform - part2)

 

  • AIM

  • Subtasks:

    • Task 2: Create a private subnet

Build Your Own AWS Infrastructure with Ease using Infrastructure as Code (IaC) Techniques

Welcome back to our Terraform journey.

In the previous tasks, you have learned about the basics of Terraform, its configuration file, and creating an EC2 instance using Terraform. Today, we will explore more about Terraform and create multiple resources.

  • Create a private subnet with CIDR block 10.0.1.0/24 in the above VPC.

    1. Create a subnet.tf file to define the private subnet with the required configuration tag.

    2. Use terraform apply to create the private subnet.

    3. We can verify the private subnet in the subnet section in AWS management console.

Thanks for reading my article. Have a nice day.

Comments

Popular posts from this blog

DevOps(Day-97): Meta-Arguments in Terraform

DevOps(Day-95): Auto Scaling with Terraform

DevOps (Day-1) Introduction