Skip to content

atifjaved02/terraform-ec2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

terraform-ec2

Terraform to create ec2 instance

Directory Structure ├── main.tf ├── modules │ ├── ec2_instance │ │ └── main.tf │ ├── security_group │ │ └── main.tf │ ├── subnet │ │ └── main.tf │ └── vpc │ └── main.tf └── variables.tf

Screenshot 2024-06-06 at 7 31 40 PM

Steps to Deploy

Initialize Terraform: Run terraform init to initialize the Terraform configuration.
Plan the Deployment: Run terraform plan to review the resources that will be created.
Apply the Configuration: Run terraform apply to create the infrastructure.

This setup will create VPCs, subnets, security groups, and EC2 instances in both us-east-1 and us-east-2 regions using Terraform modules.

About

Terraform to create ec2 instance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages