{"id":31048961,"url":"https://github.com/degagne/docker-aws-cli","last_synced_at":"2026-05-04T09:31:45.191Z","repository":{"id":310709828,"uuid":"1040915543","full_name":"degagne/docker-aws-cli","owner":"degagne","description":"Amazon Web Services Command-Line Interface (AWS CLI)","archived":false,"fork":false,"pushed_at":"2025-08-22T12:39:08.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-14T21:38:22.416Z","etag":null,"topics":["alpine-image","alpine-linux","aws-cli","aws-cli-utilities","aws-sdk","docker","docker-compose","docker-image","python3"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/ddegagne/aws-cli","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/degagne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-19T17:40:02.000Z","updated_at":"2025-08-22T12:39:12.000Z","dependencies_parsed_at":"2025-08-19T20:32:51.265Z","dependency_job_id":"7a0ea0fc-de4f-4321-9752-b1c7d32125ec","html_url":"https://github.com/degagne/docker-aws-cli","commit_stats":null,"previous_names":["degagne/docker-aws-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/degagne/docker-aws-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/degagne%2Fdocker-aws-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/degagne%2Fdocker-aws-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/degagne%2Fdocker-aws-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/degagne%2Fdocker-aws-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/degagne","download_url":"https://codeload.github.com/degagne/docker-aws-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/degagne%2Fdocker-aws-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32601501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpine-image","alpine-linux","aws-cli","aws-cli-utilities","aws-sdk","docker","docker-compose","docker-image","python3"],"created_at":"2025-09-14T21:25:11.796Z","updated_at":"2026-05-04T09:31:45.178Z","avatar_url":"https://github.com/degagne.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Amazon Web Services Command-Line Interface (CLI) for Python\n\n[![Docker Build and Push](https://github.com/degagne/docker-aws-cli/actions/workflows/docker-ci.yml/badge.svg)](https://github.com/degagne/docker-aws-cli/actions/workflows/docker-ci.yml)\n\nThis Docker image provides a lightweight environment for running the AWS CLI with Python and Alpine Linux.\nIt includes the functionality to integrate custom CA certificates, making it suitable for environments\nthat require specific CA trust stores.\n\n## Tagging\n\nThe following tagging conventions are used in this repository: `\u003cpy_version\u003e-alpine\u003cdistro_version\u003e`.\n\nFor example, `3.12-alpine3.20` indicates Python 3.12 on Alpine Linux 3.20.\n\n## Supported Tags and `Dockerfile` Links\n\n- `3.13`\n  - [`3.13-alpine3.20`](https://github.com/degagne/docker-aws-cli/tree/main/3.13)\n  - [`3.13-alpine3.21`](https://github.com/degagne/docker-aws-cli/tree/main/3.13)\n  - [`3.13-alpine3.22`](https://github.com/degagne/docker-aws-cli/tree/main/3.13)\n\n- `3.12`\n  - [`3.12-alpine3.20`](https://github.com/degagne/docker-aws-cli/tree/main/3.12)\n  - [`3.12-alpine3.21`](https://github.com/degagne/docker-aws-cli/tree/main/3.12)\n  - [`3.12-alpine3.22`](https://github.com/degagne/docker-aws-cli/tree/main/3.12)\n\n- `3.11`\n  - [`3.11-alpine3.20`](https://github.com/degagne/docker-aws-cli/tree/main/3.11)\n  - [`3.11-alpine3.21`](https://github.com/degagne/docker-aws-cli/tree/main/3.11)\n  - [`3.11-alpine3.22`](https://github.com/degagne/docker-aws-cli/tree/main/3.11)\n\n- `3.10`\n  - [`3.10-alpine3.20`](https://github.com/degagne/docker-aws-cli/tree/main/3.10)\n  - [`3.10-alpine3.21`](https://github.com/degagne/docker-aws-cli/tree/main/3.10)\n  - [`3.10-alpine3.22`](https://github.com/degagne/docker-aws-cli/tree/main/3.10)\n\n## Usage\n\nTo use this Docker image, you can pull it from the Docker registry:\n\n```bash\ndocker pull ddegagne/aws-cli:3.13-alpine3.22\n```\n\nYou can then run the AWS CLI commands using the following command:\n\n```bash\ndocker run --rm -it ddegagne/aws-cli:3.13-alpine3.22 /usr/bin/aws --version\n```\n\nYou can also utilize the AWS CLI with your AWS credentials by mounting your credentials file:\n\n```bash\ndocker run --rm -it -v ~/.aws:/root/.aws ddegagne/aws-cli:3.13-alpine3.22 /usr/bin/aws --profile UAT s3 ls\n```\n\n## Custom CA Certificates\n\nTo integrate custom CA certificates, you can mount a directory containing your CA certificates into the container.\nThe AWS CLI will automatically use these certificates for HTTPS requests.\n\nTo implement custom CA certificates, you can create a new image based on this one as follows:\n\n```Dockerfile\nARG RUNTIME_VERSION\nARG DISTRO_VERSION\n\n# ------------------- Step 1: Base Image -------------------\nFROM ddegagne/aws-cli:${RUNTIME_VERSION}-alpine${DISTRO_VERSION}\n\n# Set global variables\nARG CA_CERTIFICATE\n\n# Add custom CA certificate.\nADD ${CA_CERTIFICATE} /usr/local/share/ca-certificates/custom-ca.crt\n\n# Extract the CA certificate bundle and update the system's CA certificates.\n# Invocation of the Python script is only necessary if the `CA_CERTIFICATE` contains a bundle of certificates.\nRUN python3 /usr/local/bin/extract-certs-bundle \\\n    \u0026\u0026 update-ca-certificates\n\n# Set the entrypoint to the AWS CLI\nENTRYPOINT [\"/usr/bin/aws\"]\n```\n\nTo build this custom image, you can use the following command:\n\n```bash\ndocker build \\\n  --build-arg RUNTIME_VERSION=3.13 \\\n  --build-arg DISTRO_VERSION=3.22 \\\n  --build-arg CA_CERTIFICATE=path/to/your/custom-ca.crt \\\n  -t aws-cli-3.13-alpine3.22 .\n```\n\nThen you can run it with:\n\n```bash\ndocker run --rm -it aws-cli-3.13-alpine3.22 /usr/bin/aws s3 ls\n```\n\nAgain, you can mount your AWS credentials directory as shown earlier to use your AWS profile.\n\n```bash\ndocker run --rm -it -v ~/.aws:/root/.aws aws-cli-3.13-alpine3.22 /usr/bin/aws --profile production s3 ls\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdegagne%2Fdocker-aws-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdegagne%2Fdocker-aws-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdegagne%2Fdocker-aws-cli/lists"}