Test Documentation

Installation

To install aws_util locally in a virtual environment, use:

source venv.sh
  • Now you can use the ecs_connect command to run your script.

  • Important: You need to provide your AWS profile.

ecs_connect -p your_aws_profile
  • Replace your_aws_profile and optionally your_aws_region with your actual AWS profile name and region.

  • Example:

ecs_connect -p my-dev-profile -r us-east-1

Usage

After installation, you can directly execute commands on an ECS container using the ecs_connect command.

Example:

ecs_connect -p your_aws_profile

This will open an interactive bash shell in the selected ECS container.

For more options, check the help message:

ecs_connect --help

Troubleshooting

  • "command not found: ecs_connect":
    • Make sure you activated the virtual environment (if you created one).

    • Make sure you ran the pip install -e . command.

  • "ModuleNotFoundError: No module named ‘boto3’":
    • Make sure you activated the virtual environment and ran the pip install -e . command.

  • "Error with AWS credentials":
    • Make sure your AWS CLI is configured correctly.

    • Make sure the profile you are using is valid.

  • "Error with arguments":
    • Double check that you are using the correct arguments.

    • Double check that you are using the correct values for the arguments.