Welcome to the cfg-aws-helper-scripts
repository! This collection of scripts is designed to help you manage your AWS resources efficiently using the AWS Command Line Interface (CLI).
This repository contains a set of Bash scripts to automate common AWS tasks. These scripts aim to simplify interactions with AWS services and improve productivity by automating repetitive tasks.
Before using the scripts in this repository, ensure you have the following:
-
AWS CLI: Installed and configured with your AWS credentials. You can install the AWS CLI by following the instructions here.
-
Bash Shell: These scripts are designed to run in a Unix-like environment. Ensure you have access to a Bash shell (e.g., macOS, Linux, or Git Bash on Windows).
This script allows you to list EC2 instances and toggle their state (start/stop) interactively. It fetches instances from a specified AWS profile and region.
- Lists EC2 instances with their instance ID, state, and Name tag.
- Prompts the user to select an instance by index number.
- Toggles the state of the selected instance (running to stopped, or stopped to running).
- Make the script executable:
chmod +x <script_name>.sh