Written by Vaibhav Umarvaishya
Share This Blog
Open the AWS Console:
Go to the AWS Management Console by entering the URL in your web browser.
On the login page, you will see options to log in as either the Root User or an IAM User. Choose the option based on your access type:
Once you’re authenticated, you’ll be directed to the AWS Management Console home page, where you can view and manage your AWS services.
Remember to log out after your session, especially if you're using a shared or public computer, by selecting your user name at the top-right corner and choosing Sign Out.
The AWS Management Console provides a web-based interface for managing AWS resources, including services like EC2, S3, and RDS, along with account and billing settings.
To locate an EC2 instance within the AWS Management Console, follow these steps:
The EC2 Dashboard allows you to manage instances, start/stop/reboot them, view monitoring data, manage tags, and perform other administrative tasks.
To terminate an EC2 instance within the AWS Management Console, follow these steps:
To begin the termination process for an EC2 instance, start by selecting the instance you wish to delete. In the EC2 Dashboard, find the Instance State dropdown menu located in the top navigation bar. Clicking on Instance State will reveal several options related to the instance’s status. From this list, choose Terminate Instance. This action signals AWS to start the shutdown process for that instance, which will lead to its permanent deletion. AWS will display a prompt to confirm the termination to prevent accidental deletion. After confirmation, the instance will transition from an active state to Shutting-down and finally to Terminated, indicating that it is no longer available for use.
After initiating the termination of an EC2 instance, AWS will present a confirmation prompt to ensure that you want to proceed with this action. This step is crucial as it helps prevent accidental deletions of instances that might still be in use or contain important data. The confirmation dialog will display details about the instance you selected, including its Instance ID and any associated resources that may be affected by the termination.
To confirm the termination, carefully review the information provided and ensure it aligns with your intentions. If you are certain that you want to delete the instance, click on the Yes, Terminate button. Once you confirm, the instance will start the shutdown process, transitioning through states from 'Shutting-down' to 'Terminated'. It’s important to note that after an instance is terminated, it cannot be restarted or recovered, so double-checking this step is essential to avoid any unintended data loss.
Before and after terminating an EC2 instance, it’s essential to verify the status of your data backups and the configuration of any associated storage volumes. This step ensures that you do not lose important data inadvertently.
Ensure that any critical data stored on the instance has been backed up. This can be done by creating EBS snapshots or transferring files to Amazon S3. If you haven’t already done so, take the time to create backups to safeguard against data loss.
Check the configuration of any attached Elastic Block Store (EBS) volumes. By default, EBS volumes may remain intact after terminating an instance unless the 'Delete on Termination' option was selected during the instance launch. To review this setting:
Note that instance store volumes (ephemeral storage) are automatically deleted when the instance is terminated. Ensure that any necessary data stored on these volumes has been moved to persistent storage solutions (like EBS or S3) before terminating the instance.
If you’re using any associated resources (like Elastic IPs, security groups, or load balancers), consider reviewing and managing them accordingly, as they may incur costs or impact your AWS infrastructure.
By carefully verifying your data backups and volume settings, you can confidently terminate your EC2 instance while ensuring that your important data remains safe and accessible.
After confirming the termination of an EC2 instance, it’s important to monitor the status to ensure that the instance has been successfully shut down and terminated. You can check the termination status by following these steps:
Navigate back to the EC2 Dashboard within the AWS Management Console.
In the left-hand menu, click on Instances to display a list of all your EC2 instances. This will include instances that are running, stopping, stopped, and terminated.
You may want to apply a filter to show only terminated instances. Use the filter options at the top of the instance list to select the Terminated status. This can help you easily locate the instance you just terminated.
Find the instance you terminated. The status should now be displayed as Terminated. You can click on the instance ID to view detailed information about the instance, including any associated EBS volumes and instance metadata.
Verify that any associated resources, such as Elastic IPs or EBS volumes, have been properly managed according to your needs. If EBS volumes are still attached and you don’t need them, consider detaching or deleting them to avoid incurring charges.
Once an instance is marked as Terminated, it cannot be restarted or recovered. Any data stored on instance store volumes has been lost, and you should ensure that all necessary backups are in place.
By regularly checking the termination status of your EC2 instances, you can maintain effective control over your cloud resources, ensuring that your environment remains clean and cost-effective.
If you like this read then make sure to check out our previous blogs: Cracking Onboarding Challenges: Fresher Success Unveiled
Confused about our certifications?
Let Our Advisor Guide You