Skip to content

Commit

Permalink
Bump aws-cli version to 2.13.7
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Aug 5, 2023
1 parent c6934c0 commit fcacf15
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
6 changes: 3 additions & 3 deletions aws-cli/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ RUN yum update -y \
&& arch="$(arch)" \
&& case "${arch##*-}" in \
x86_64) \
AWS_CLI_URL='https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.11.27.zip' \
AWS_CLI_URL='https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.13.7.zip' \
;; \
aarch64) \
AWS_CLI_URL='https://awscli.amazonaws.com/awscli-exe-linux-aarch64-2.11.27.zip' \
AWS_CLI_URL='https://awscli.amazonaws.com/awscli-exe-linux-aarch64-2.13.7.zip' \
;; \
armv7l) \
AWS_CLI_URL='https://awscli.amazonaws.com/awscli-exe-linux-armv7l-2.11.27.zip' \
AWS_CLI_URL='https://awscli.amazonaws.com/awscli-exe-linux-armv7l-2.13.7.zip' \
;; \
*) echo "unsupported architecture"; exit 1 ;; \
esac \
Expand Down
2 changes: 1 addition & 1 deletion aws-cli/Polly.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[container_image]
tags=["2.11.27", "latest"]
tags=["2.13.7", "latest"]
platforms=["linux/arm64","linux/amd64"]
20 changes: 16 additions & 4 deletions aws-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,31 @@ Source location: https://github.com/boxcutter/oci/tree/main/aws-cli

Based on https://github.com/aws/aws-cli/blob/v2/docker/Dockerfile

Installing passed releases of the AWS CLI version 2:
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-version.html
https://github.com/aws/aws-cli/blob/v2/CHANGELOG.rst
Installing past releases of the AWS CLI version 2:
- https://docs.aws.amazon.com/cli/latest/userguide/getting-started-version.html
- https://github.com/aws/aws-cli/blob/v2/CHANGELOG.rst

## Getting started with the command-line interface

Obtain an AWS Access Key and Secret Key.

It's probably easiest to share credentials and configuration from host system
to the container. Conrigure
to the container. Configure

```
docker run -it --rm \
--mount type=bind,source="$HOME/.aws",target=/root/.aws \
docker.io/boxcutter/aws-cli configure --profile default
AWS Access Key ID [None]: ABC123
AWS Secret Access Key [None]: superseekret
Default region name [None]: us-east-1
Default output format [None]:
```

You can test that the credentials are valid by using the `aws s3 ls` command:

```
docker run --rm \
--mount type=bind,source="$HOME/.aws",target=/root/.aws,readonly \
docker.io/boxcutter/aws-cli s3 ls --profile default
```

0 comments on commit fcacf15

Please sign in to comment.