DirectorySecurity advisories
Sign in

Directory

aws-cli-v2 logo

aws-cli-v2

Last changed
Get started with latest for free
docker pull cgr.dev/chainguard/aws-cli-v2

Need access to a specific version? Contact us.

Sign in for updates

Get notified of upcoming product changes, critical vulnerability notifications and patches and more.

Sign in
Versions
Overview
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Minimal aws-cli v2 container image.

Download this Image

The image is available on cgr.dev:

docker pull cgr.dev/chainguard/aws-cli-v2:latest

Usage

Before using the aws-cli Chainguard Image, you need to configure your AWS credentials. There are a number of ways you can do this, so we encourage you to review the official AWS credentials documentation to determine what method works best for you.

AWS credentials and configurations are typically stored in a directory named .aws. Assuming you've already set up your AWS credentials locally, you can share them from your host machine to a container by mounting this directory as a volume. The following command follows this method to pass along AWS credentials in order to retrieve a list of EKS clusters:

docker run --rm -it -v ~/.aws:/home/nonroot/.aws:ro cgr.dev/chainguard/aws-cli-v2:latest s3 ls

Note that Chainguard's aws-cli Image has a single user nonroot with uid 65532, belonging to gid 65532.; the previous command mounts the local .aws directory under this user's home directory. Be aware that if you follow this method you may need to adjust the permissions of your local credentials file in order for the container to be able to read it.

You can get help with any command when using the AWS Command Line Interface (AWS CLI) by following any command name with help. For example, the following command displays help for the general AWS CLI options and the available top-level commands:

docker run --rm cgr.dev/chainguard/aws-cli-v2:latest help

The following command displays help information for the aws ec2 run-instances command:

docker run --rm cgr.dev/chainguard/aws-cli-v2:latest ec2 run-instances help

Please refer to the official Getting Started guide for more information.

Licenses

Chainguard Images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" version of this image:

  • Apache-2.0

  • Artistic-1.0-Perl

  • GCC-exception-3.1

  • GPL-1.0-or-later

  • GPL-2.0-or-later

  • GPL-3.0-or-later

  • LGPL-2.1-or-later

View more

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Related images

Category
application
tools

Products

Chainguard Images

© 2024 Chainguard, Inc.