https://github.com/visaltyagi/terraform-assignment-4
How to Create a VPC & Deploy an EC2 Instance Inside It— Terraform Assignment 4
https://github.com/visaltyagi/terraform-assignment-4
aws deploy dev devops devops-team devops-tools ec2 ec2-instance terraform vpc
Last synced: about 1 year ago
JSON representation
How to Create a VPC & Deploy an EC2 Instance Inside It— Terraform Assignment 4
- Host: GitHub
- URL: https://github.com/visaltyagi/terraform-assignment-4
- Owner: visaltyagi
- Created: 2024-04-21T09:10:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-17T09:57:22.000Z (over 1 year ago)
- Last Synced: 2025-02-07T20:45:04.548Z (about 1 year ago)
- Topics: aws, deploy, dev, devops, devops-team, devops-tools, ec2, ec2-instance, terraform, vpc
- Language: HCL
- Homepage: https://medium.com/devops-guides/create-a-vpc-deploy-an-ec2-instance-inside-it-terraform-assignment-4-885c67781c61
- Size: 318 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform-Assignment-4
Terraform-Assignment-4
**For the detailed solution to this assignment, click this link:** https://medium.com/devops-guides/create-a-vpc-deploy-an-ec2-instance-inside-it-terraform-assignment-4-885c67781c61
**Step 1:** Destroy the previous assignment resources using the command: terraform destroy
**Step 2:** Assignment 3 Resources will be successfully deleted.
**Step 3:** Create a "main.tf" file, and paste the script code here.
**Step 4:** Initialize terraform using the command: terraform init
**Step 5:** Create a plan using the command: terraform plan
**Step 6:** Use this command to rename ec2 instances: terraform apply
**Step 7:** The VPC & Instance both are created successfully. Now, the Instance has been successfully created in VPC using Terraform. Go to the "AWS" console & check that the instance has been created successfully.