Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/visaltyagi/terraform-assignment-3
How to Rename the EC2 Instances After Creation —Terraform Assignment 3
https://github.com/visaltyagi/terraform-assignment-3
aws aws-ec2 development devops devops-team devops-tools ec2 instance rename-instance terraform
Last synced: 6 days ago
JSON representation
How to Rename the EC2 Instances After Creation —Terraform Assignment 3
- Host: GitHub
- URL: https://github.com/visaltyagi/terraform-assignment-3
- Owner: visaltyagi
- Created: 2024-04-21T05:37:19.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-11-17T07:36:35.000Z (3 months ago)
- Last Synced: 2024-12-14T22:17:36.433Z (2 months ago)
- Topics: aws, aws-ec2, development, devops, devops-team, devops-tools, ec2, instance, rename-instance, terraform
- Language: HCL
- Homepage: https://medium.com/devops-guides/rename-ec2-instances-after-creation-terraform-assignment-3-33b9030c4894
- Size: 387 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform-Assignment-3
Terraform-Assignment-3**For the detailed solution to this assignment, click this link:** https://medium.com/devops-guides/rename-ec2-instances-after-creation-terraform-assignment-3-33b9030c4894
**Step 1:** Destroy the previous assignment resources using the command: terraform destroy
**Step 2:** Assignment 2 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 instance will be successfully renamed. Go to "EC2" Instance & renamed instances will be shown in both the regions.