Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » AWS/Azure/OpenShift » Various ways to restart an AWS EC2 instance
  • maxresdefault 2 2
    Fix Outlook Not Responding and Outlook Crashing or freezing Network | Monitoring
  • FimageUbuntuUpgrade
    How to Upgrade From Ubuntu 20.04 LTS to 22.04 LTS Linux
  • win 10 login screen
    How to Transfer User Profile to another User in Windows Windows
  • system
    How to fix the system cannot find the file specified when adding LP, LIP, and FoD packages to Windows Images Windows Server
  • maxresdefault
    How to join a computer to the Domain Windows Server
  • Azure logo 1
    Azure Active Directory: Why do I need to deploy Azure AD? AWS/Azure/OpenShift
  • Telegram
    Integrate a WordPress site with WP Telegram Network | Monitoring
  • Certificates
    The application /Certsrv does not exist: How to configure Certificate Enrollment Web Services and Certificate Authority Web Enrolment Windows Server

Various ways to restart an AWS EC2 instance

Posted on 30/04/202328/08/2024 Temitope Odemo By Temitope Odemo No Comments on Various ways to restart an AWS EC2 instance
banner

Amazon Elastic Compute Cloud also known as Amazon EC2 will provide you with a scalable computing service that will eliminate the need of purchasing a physical server that will need an upfront fee. AWS EC2 can help to spin up as many virtual servers as you may need for your project in minutes. In this guide, I will be showing you the Various ways to restart an AWS EC2 instance. Please see How to Deploy Dynamic Website to AWS EC2 and How to Deploy MVC Application to AWS EC2 Using RDP Connection and Web Deploy.

Another important aspect of AWS EC2 is that it is highly scalable in reacting to environmental changes. You can also configure the security and networking part to suit your requirements. Please see the YouTube video on various ways to restart an AWS EC2 instance.

You may also want to know How to Add and Format a New Virtual Disk to an EC2 Instance and how to sync S3 Bucket with an EC2 instance.

Follow the various ways to restart an AWS EC2 instance

Please follow the steps below to restart an AWS EC2 instance. See how to Set up and configure Route 53 for your Domain in AWS, Various methods to launch the Event Viewer and Various Ansible Authentication Options.

1. Restart using AWS Console

a) Login into your AWS Account and navigate to your AWS EC2 Console.
b) Navigate to the exact EC2 instance and check the box. Under the Instance state drop-down select Reboot instance.

EC2
Restart via Console

c) Once rebooted you will see the message at the top “Successfully rebooted instance id”.

Successfully-rebooted
Reboot Successfully

2. Restart EC2 using Command Line Interface

a) Launch the AWS CLI by searching for CloudShell. Here is a YouTube video showing these steps.

Cloudshell
AWS CloudShell

b) Once the CLI is launched enter the below command and hit the enter key.

aws ec2 reboot-instances --instance-ids “enter your instance id here”
AWS-Cloudshell
AWS CloudShell Launched

Please note that while using the AWS CLI you will not get any message or notification.

3. Restart EC2 using PowerShell

a) You will need to create an AWS key to make use of PowerShell to connect to your AWS account.

b) Go to your EC2 account and create key pair.

Create-Key-Pair

c) Run your PowerShell as an Administrator and make sure you have saved the created key pair file in the user folder as depicted in the image below.

d) Enter the below command on the PowerShell and hit the enter key and when asked Yes/No question type Yes.

ssh -i “enter key pair” “enter EC2 user”@“enter your EC2 Public IP”
ssh -i techdirect.pem [email protected]
SSH-to-AWS-Account
SSH to AWS

e) After connecting to AWS via PowerShell, you still need to do a few configurations before you can use it to restart your EC2 instance.
f) Navigate to the Security credentials.

Security-Credentials
Security Credentials

g) Navigate to the Access keys section and click the Create access key and create an access key and Secret access key that you will use to action PowerShell to reboot the EC2.

Create-Access-Key
Create Access Key

As you can see, the Access Key and Secret Access Key have been created.

Access-key-and-Secret-access-key
Access key and Secret Access Key

h) On the PowerShell enter the AWS Access Key ID and AWS Secret Access Key.
i) Enter any other information you see and hit the enter key.

PowerShell-to-AWS
AWS Configure

j) Next enter the following command to restart the EC2 instance. Once its successful you will see the message The system will reboot now!

aws ec2 reboot-instances --instance-ids “enter your instance id here”
EC2-Reboot_PowerShell

I hope you found this blog post on various ways to restart an AWS EC2 instance Interesting and helpful. In case you have any questions do not hesitate to ask in the comment section.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
AWS/Azure/OpenShift Tags:AWS, AWS CLI, EC2, EC2 instance, EC2 Instances

Post navigation

Previous Post: Configure Windows LAPS Management with Microsoft Intune
Next Post: How to Check and Reset Network Data Usage in Windows 11

Related Posts

  • Setup FSx File System 1
    Create and mount FSx File System: Join EC2 instance to AWS Managed AD AWS/Azure/OpenShift
  • chamedk8s featured
    Install CNF Certified Kubernetes in AWS AWS/Azure/OpenShift
  • CloudFrontAWS
    Serve Private S3 Bucket Contents Via CloudFront AWS/Azure/OpenShift
  • azure logo
    Azure CLI commands: How to use Azure Command-line Interface AWS/Azure/OpenShift
  • EC2
    How to Add and Format a New Virtual Disk to an EC2 Instance AWS/Azure/OpenShift
  • MSSQL Always On Cluster on Azure
    [AZURE] Procedure for creating an MSSQL Always On Cluster on Azure AWS/Azure/OpenShift

More Related Articles

Setup FSx File System 1 Create and mount FSx File System: Join EC2 instance to AWS Managed AD AWS/Azure/OpenShift
chamedk8s featured Install CNF Certified Kubernetes in AWS AWS/Azure/OpenShift
CloudFrontAWS Serve Private S3 Bucket Contents Via CloudFront AWS/Azure/OpenShift
azure logo Azure CLI commands: How to use Azure Command-line Interface AWS/Azure/OpenShift
EC2 How to Add and Format a New Virtual Disk to an EC2 Instance AWS/Azure/OpenShift
MSSQL Always On Cluster on Azure [AZURE] Procedure for creating an MSSQL Always On Cluster on Azure AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • maxresdefault 2 2
    Fix Outlook Not Responding and Outlook Crashing or freezing Network | Monitoring
  • FimageUbuntuUpgrade
    How to Upgrade From Ubuntu 20.04 LTS to 22.04 LTS Linux
  • win 10 login screen
    How to Transfer User Profile to another User in Windows Windows
  • system
    How to fix the system cannot find the file specified when adding LP, LIP, and FoD packages to Windows Images Windows Server
  • maxresdefault
    How to join a computer to the Domain Windows Server
  • Azure logo 1
    Azure Active Directory: Why do I need to deploy Azure AD? AWS/Azure/OpenShift
  • Telegram
    Integrate a WordPress site with WP Telegram Network | Monitoring
  • Certificates
    The application /Certsrv does not exist: How to configure Certificate Enrollment Web Services and Certificate Authority Web Enrolment Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.