Skip to content

This Bash script is designed to simplify the interaction with Amazon Web Services (AWS) Elastic Container Service (ECS). It allows you to list ECS clusters, select a specific cluster, list tasks within the selected cluster, and connect to a container interactively.

Notifications You must be signed in to change notification settings

arnaud-coral/AWS-ECS-Cluster-Interaction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🚀 AWS ECS Cluster and Container Interaction Script

This Bash script is designed to simplify the interaction with Amazon Web Services (AWS) Elastic Container Service (ECS). It allows you to list ECS clusters, select a specific cluster, list tasks within the selected cluster, and connect to a container interactively.

🧰 Prerequisites

Before using this script, make sure you have the following prerequisites in place:

  1. AWS CLI 🔌 : Ensure you have the AWS Command Line Interface installed and configured with the necessary AWS credentials and permissions.

  2. jq 🛠️ : You will need the jq command-line tool for parsing JSON data. Make sure it is installed on your system.

🚴 Usage

  1. Clone this repository to your local machine.
  2. Make the script executable by running the following command:
chmod +x ecs-connect.sh
  1. Run the script
./ecs-connect.sh
  1. The script will guide you through the following steps:
  • List available ECS clusters and allow you to select one.
  • List tasks within the selected cluster.
  • If multiple tasks are available, you can choose one.
  • Finally, it will connect to a container within the selected task interactively using /bin/sh.

🔎 Script Details

  • The script uses the AWS CLI to interact with AWS ECS services.
  • It leverages the `jq`` tool to parse and manipulate JSON data.
  • It provides a user-friendly interface for selecting ECS clusters and tasks.
  • It enables you to connect to a container within a selected task for debugging or other purposes.

⚠️ Disclaimer

This script is provided as-is and does not come with any warranties or support. Use it at your own risk, and make sure you have the necessary AWS credentials and permissions to access your AWS resources.

📜 License

This script is © 2023 by Arnaud Coral. It's licensed under CC BY-NC-SA 4.0. Please refer to the license for permissions and restrictions.

About

This Bash script is designed to simplify the interaction with Amazon Web Services (AWS) Elastic Container Service (ECS). It allows you to list ECS clusters, select a specific cluster, list tasks within the selected cluster, and connect to a container interactively.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages