AWS CLI tools (awscli) on Alpine Linux (latest)
582
Images for working with awscli on CI/CD pipelines. Takes four environment variables. When AWS_ROLE_ARN is set a profile named deploy is configured to use that role.
AWS_ROLE_ARNAWS_PROFILE_NAME (deploy)AWS_REGION (eu-west-1)AWS_CREDENTIAL_SOURCE (Ec2InstanceMetadata)AWS_ROLE_SESSION_NAME (container)With all defaults:
docker run -ti --rm awscli:latest aws sts get-caller-identitySetting AWS_ROLE_ARN:
docker run -ti --rm -e AWS_ROLE_ARN="arn:aws:sts::1234567890:role/deployment-role" awscli:latest aws sts get-caller-identityTakes five arguments during build process, where VERSION is the awscli version used and ALPINE_VERSION is the Alpine Linux version used, which defaults to latest.
VERSIONALPINE_VERSION (latest)USER (jenkins)UID (1000)GID (1000)Build and tag with alpine latest and awscli 1.16.140:
docker build --build-arg VERSION=1.16.140 --tag awscli:1.16.140 .Build and tag with alpine 3.9 and awscli 1.16.140:
docker build --build-arg VERSION=1.16.140 --build-arg ALPINE_VERSION=3.9 --tag awscli:1.16.140-alpine3.9 .Content type
Image
Digest
Size
89.9 MB
Last updated
over 7 years ago
docker pull circlekeurope/awscli