Author name: Jahangeer

Automatic start stop EC2 with Systems Manager

Automatic start and stop AWS EC2 instance using Systems Manager

In this blog we will learn how to schedule AWS EC2 instance to start and stop using AWS Systems Manager Maintenance Windows. Prerequisite: Please make sure SSM agent is installed and running in the EC2 instance. To schedule Amazon EC2 to start or stop using Systems Manager maintenance windows, register AWS-StartEC2Instance or AWS-StopEC2Instance Automation tasks

Automatic start and stop AWS EC2 instance using Systems Manager Read More »

sudo command not working

How to Repair a Corrupted sudoers File on an AWS EC2 Instance (Without Detaching the Root Volume)

A corrupted sudoers file can prevent users from running any sudo command on an Amazon EC2 instance. This usually happens after an incorrect modification to /etc/sudoers or a file under /etc/sudoers.d/. When the configuration becomes invalid, administrative access through sudo stops working, making server management difficult. Most recovery guides recommend detaching the root EBS volume

How to Repair a Corrupted sudoers File on an AWS EC2 Instance (Without Detaching the Root Volume) Read More »