This repository contains the AWS-DOS-CONSOLE script, designed to help manage AWS EC2 instances with ease using DOS batch commands. The script provides a user-friendly, command-line interface for controlling EC2 instances directly from a Windows machine without needing to use the AWS Management Console.
- Start/Stop EC2 Instances: Easily start or stop your AWS EC2 instances by specifying the Instance ID.
- Query Instance State: Check the current state (running, stopped) of any EC2 instance.
- Reboot Instances: Reboot your instances quickly and efficiently.
- Simplified Management: Provides a batch script for Windows users, removing the need to manually enter complex AWS CLI commands.
Before running the script, make sure the following are installed and properly configured:
- AWS CLI: The AWS Command Line Interface (CLI) must be installed and configured with valid AWS credentials.
- Windows OS: This script is written for DOS/Windows environments.
- AWS Credentials: You should have AWS credentials set up and configured.
If you don't have the AWS CLI installed, follow the steps below:
-
Download the AWS CLI installer for Windows from the official AWS documentation.
-
Run the installer and follow the instructions to complete the installation.
-
Configure your AWS credentials by running the following command:
aws configure
-
Clone the repository:
git clone https://github.com/CarloSacchi/aws-dos-console.git cd aws-dos-console
-
Make sure AWS CLI is properly installed and configured with your credentials.
-
Run the batch file:
AWS_DOS_Console.bat
-
Follow the on-screen instructions to start, stop, reboot, or check the status of your EC2 instances by specifying the Instance ID.
This project is licensed under the MIT License
Ths is a simple BASH / CMD .cmd script that automate and simplify some operations like:
- list the EC2 instances (based on your preferred region on yuor AWS CLI configuration);
- select ID of the instance to manage;
- Start / Check / Stop that instance selected
- Change type of an instance.
You can select instances to manage by ID then Start, Stop or simply check if it is on running state.
First Step: Launch this script
Second Step: The script list instances and Ask you to select an instance, copy and paste the ID, then press enter
- if you write 'check' it the script check simply the state,
- if you write 'start' the script starts the instance,
- if you write 'stop' the script stops the instance.
Then the script ask to you if you want to exit or not.