Run Amazon Q Developer CLI in a Docker container for automation.
This project is not affiliated with Amazon or any of its subsidiaries. It is an independent project created to facilitate the use of Amazon Q Developer CLI in a Docker environment.
Important
You may need to re-build the Docker image in a regular basis to ensure you have the latest version of Amazon Q Developer CLI.
docker build -t auto-q .Make sure you have logged in to Amazon Q Developer CLI using q login and have your AWS credentials configured in ~/.aws/credentials and ~/.aws/config on your host machine. The container will mount these credentials to authenticate with AWS services.
docker run -it \
-v "${HOME}/.aws/credentials:/root/.aws/credentials:ro" \
-v "${HOME}/.aws/config:/root/.aws/config:ro" \
-v "${HOME}/.aws/amazonq:/root/.aws/amazonq:rw" \
-v "${HOME}/.local/share/amazon-q:/root/.local/share/amazon-q:rw" \
-e AWS_PROFILE \
-e AWS_REGION \
-e TZ \
auto-q "who are you"Inspired by: