Arguments
- A name of a Docker image
- A bash command (to run inside the Docker image)
- A name of an AWS CloudWatch group
- A name of an AWS CloudWatch stream
- AWS credentials
- A name of an AWS region
Example:
python main.py --docker-image nginx --bash-command "echo 123" \
--aws-cloudwatch-group test-task-group-1 --aws-cloudwatch-stream test-task-stream-1 \
--aws-access-key-id ... --aws-secret-access-key ... --aws-region us-east-1
Functionality
โ The program should create a Docker container using the given Docker image name, and the given bash command
โ The program should handle the output logs of the container and send them to the given AWS CloudWatch group/stream using the given AWS credentials. If the corresponding AWS CloudWatch group or stream does not exist, it should create it using the given AWS credentials.