From fcacf15f424e40174196c8082cf4737c3d27af36 Mon Sep 17 00:00:00 2001 From: Mischa Taylor Date: Sat, 5 Aug 2023 14:03:21 -0400 Subject: [PATCH] Bump aws-cli version to 2.13.7 --- aws-cli/Containerfile | 6 +++--- aws-cli/Polly.toml | 2 +- aws-cli/README.md | 20 ++++++++++++++++---- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/aws-cli/Containerfile b/aws-cli/Containerfile index 9caf4a3..dab92f2 100644 --- a/aws-cli/Containerfile +++ b/aws-cli/Containerfile @@ -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 \ diff --git a/aws-cli/Polly.toml b/aws-cli/Polly.toml index b796cf8..6638bc2 100644 --- a/aws-cli/Polly.toml +++ b/aws-cli/Polly.toml @@ -1,3 +1,3 @@ [container_image] -tags=["2.11.27", "latest"] +tags=["2.13.7", "latest"] platforms=["linux/arm64","linux/amd64"] diff --git a/aws-cli/README.md b/aws-cli/README.md index 37f0093..aad4f41 100644 --- a/aws-cli/README.md +++ b/aws-cli/README.md @@ -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 +``` \ No newline at end of file