DevOps(Day 89) : Create a public subnet using terraform - (entire infrastructure through Terraform - part3)

 

  • AIM

  • Subtasks:

    • Task 3: Create a public 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 public subnet with CIDR block 10.0.2.0/24 in the above VPC.

    1. Similarly, in the subnet.tf file that we created above define the public subnet block.

    2. Use terraform apply to create the public subnet.

    3. We can verify the subnet creation in the AWS 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