https://github.com/carlosacchi/aws-bash-console
Starting with the AWS DOS Console script, I developed an AWS Bash Console script that allows you to easily run, stop, or modify AWS EC2 instances without using the GUI. Simply execute the script, select the instance ID you want to manage, and choose the desired action.
https://github.com/carlosacchi/aws-bash-console
aws aws-ec2 ec2 ec2-instance instances manage script
Last synced: 5 months ago
JSON representation
Starting with the AWS DOS Console script, I developed an AWS Bash Console script that allows you to easily run, stop, or modify AWS EC2 instances without using the GUI. Simply execute the script, select the instance ID you want to manage, and choose the desired action.
- Host: GitHub
- URL: https://github.com/carlosacchi/aws-bash-console
- Owner: carlosacchi
- Created: 2023-03-20T20:41:46.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-10T20:40:58.000Z (over 1 year ago)
- Last Synced: 2025-04-03T23:30:03.104Z (10 months ago)
- Topics: aws, aws-ec2, ec2, ec2-instance, instances, manage, script
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS Bash Console Script
This repository contains a Bash script called **AWS_Start_Stop.sh** that simplifies managing your AWS EC2 instances. Based on the original **AWS-DOS-CONSOLE** script, this updated version allows you to easily **run**, **stop**, and **change** the state of your AWS EC2 instances directly from the command line.
With this script, you can manage your EC2 instances without navigating through the AWS Management Console, by simply providing the **Instance ID** of the EC2 instance and specifying the desired action (start, stop, reboot, etc.). The script is designed to streamline EC2 management, making it easier and faster to control your cloud infrastructure.
## Features
- **Start/Stop Instances**: Easily start or stop any EC2 instance using its Instance ID.
- **Reboot Instances**: Quickly reboot an instance with a single command.
- **Check Instance Status**: View the current status of your EC2 instances.
- **Simplified Commands**: No need to manually input complex AWS CLI commands – this script handles everything for you.
## Prerequisites
Before using the script, ensure you have the following:
- **AWS CLI**: The AWS Command Line Interface (CLI) must be installed and configured with proper credentials.
- **Bash**: A Unix-based system with Bash shell support.
### Install AWS CLI
You can install the AWS CLI with the following commands:
```bash
# On Linux / macOS
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
# On Windows
Follow the instructions on [AWS CLI Installation](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html)
```
### AWS Credentials
Make sure that you have AWS credentials set up either via `~/.aws/credentials` or using environment variables.
```bash
aws configure
```
## How to Use
1. Clone this repository:
```bash
git clone https://github.com/CarloSacchi/aws-bash-console.git
cd aws-bash-console
```
2. Make the script executable:
```bash
chmod +x AWS_Start_Stop.sh
```
3. Run the script, providing the instance ID and the action you want to perform:
```bash
./AWS_Start_Stop.sh
```
4. Follow the prompts to choose your desired action (start, stop, reboot) and specify the EC2 Instance ID.
## License
This project is licensed under the MIT License