Git Product home page Git Product logo

ukhomeoffice.dq-aws-cli-docker's Introduction

Docker Repository on Quay

dq-aws-cli-docker

Docker container with AWS CLI.

Dependencies

  • Alpine3.8
  • AWS CLI
  • AWS keypair
  • Docker

Build container

The container takes a couple of build time variables to accommodate mounting volumes eg. in a Kubernetes deployment.

Variable Value Default
BUILD_VOLUME /workdir True
BUILD_DIR test True

Using default values

docker build -t aws/cli --rm .

Passing in build time variables

docker build --rm \
-t aws/cli \
--build-arg BUILD_VOLUME=/volume \
--build-arg BUILD_DIR=test

Run container

Upon runtime the container will need 3 (three) variables supplied so that it can connect to AWS services.

Variable Value Required
AWS_ACCESS_KEY_ID ABCB True
AWS_SECRET_ACCESS_KEY ABCD1234 True
AWS_DEFAULT_REGION eu-west-2 True
docker run \
-e AWS_ACCESS_KEY_ID='foo' \
-e AWS_SECRET_ACCESS_KEY='bar' \
-e AWS_DEFAULT_REGION='eu-west-2' \
--name aws \
-v /local/path/docker-mount:/workdir \
-d aws/cli \
s3 cp --no-progress /workdir/test/test.file s3://s3-bucket-name/

ukhomeoffice.dq-aws-cli-docker's People

Contributors

david-wirelab avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.