https://github.com/visaltyagi/terraform-assignment-1
How to Create an EC2 Instance Using Terraform — Terraform Assignment 1
https://github.com/visaltyagi/terraform-assignment-1
aws aws-terraform developer-tools devops devops-tools ec2-instance terraform
Last synced: 2 months ago
JSON representation
How to Create an EC2 Instance Using Terraform — Terraform Assignment 1
- Host: GitHub
- URL: https://github.com/visaltyagi/terraform-assignment-1
- Owner: visaltyagi
- Created: 2024-04-07T08:34:22.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-17T07:21:37.000Z (over 1 year ago)
- Last Synced: 2025-02-07T20:45:14.110Z (over 1 year ago)
- Topics: aws, aws-terraform, developer-tools, devops, devops-tools, ec2-instance, terraform
- Language: Shell
- Homepage: https://medium.com/devops-guides/create-an-ec2-instance-using-terraform-assignment-1-1ba0e2e89c68
- Size: 796 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform-Assignment-1
Terraform-Assignment-1
**For a complete detailed solution with step by step, click this link:** https://medium.com/devops-guides/create-an-ec2-instance-using-terraform-assignment-1-1ba0e2e89c68
**Step 1:** Create a "Master" Machine on Amazon EC2. Install terraform using "terraform-install.sh" using bash command.
**Step 2:** Create a script to create a basic EC2 Instance & paste the script into "main.tf" file.
**Step 3:** Initialize the "Terraform" using the command: terraform init
**Step 4:** To create the plan, use this command: terraform plan
**Step 5:** Run the script using the command: terraform apply
**Step 6:** Instance will be created with default settings in the "Ohio" region.
**Step 7:** Go to the "EC2" section & an EC2 instance named as "assignment-1" will be successfully created.