Sign inSign up

circlekeurope/awscli

By circlekeurope

Updated over 7 years ago

AWS CLI tools (awscli) on Alpine Linux (latest)

Image
0

582

circlekeurope/awscli repository overview

AWS CLI Docker Image

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_ARN
  • AWS_PROFILE_NAME (deploy)
  • AWS_REGION (eu-west-1)
  • AWS_CREDENTIAL_SOURCE (Ec2InstanceMetadata)
  • AWS_ROLE_SESSION_NAME (container)

Running

With all defaults:

  • docker run -ti --rm awscli:latest aws sts get-caller-identity

Setting AWS_ROLE_ARN:

  • docker run -ti --rm -e AWS_ROLE_ARN="arn:aws:sts::1234567890:role/deployment-role" awscli:latest aws sts get-caller-identity

Building

Takes 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.

  • VERSION
  • ALPINE_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 .

Tag summary

Content type

Image

Digest

Size

89.9 MB

Last updated

over 7 years ago

docker pull circlekeurope/awscli