https://github.com/visaltyagi/terraform-assignment-2
How to Create an EC2 Instance With an Elastic IP Address: Terraform Assignment 2
https://github.com/visaltyagi/terraform-assignment-2
devops devops-enabled devops-guide devops-platform devops-platforms devops-team devops-tech-enablement devops-tools elastic instance ip terraform terraform-aws
Last synced: 5 months ago
JSON representation
How to Create an EC2 Instance With an Elastic IP Address: Terraform Assignment 2
- Host: GitHub
- URL: https://github.com/visaltyagi/terraform-assignment-2
- Owner: visaltyagi
- Created: 2024-04-07T11:16:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-17T07:26:27.000Z (over 1 year ago)
- Last Synced: 2025-02-07T20:45:16.859Z (about 1 year ago)
- Topics: devops, devops-enabled, devops-guide, devops-platform, devops-platforms, devops-team, devops-tech-enablement, devops-tools, elastic, instance, ip, terraform, terraform-aws
- Language: HCL
- Homepage: https://medium.com/devops-guides/create-an-ec2-instance-with-an-elastic-ip-address-terraform-assignment-2-85a5fcc5542b
- Size: 304 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform-Assignment-2
Terraform Assignment 2
**For the detailed solution to this assignment, click this link:** https://medium.com/devops-guides/create-an-ec2-instance-with-an-elastic-ip-address-terraform-assignment-2-85a5fcc5542b
**Step 1:** Destroy the previous assignment resources using the command: terraform destroy
**Step 2:** Assignment 1 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 create an ec2 instance with an Elastic IP address: terraform apply
**Step 7:** The instance will be successfully created. Go to "EC2" Instance & an instance will be shown with an elastic ip address.