Giter Site home page Giter Site logo

pczora / terraform-aws-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zenika-open-source/terraform-aws-cli

0.0 0.0 0.0 50 KB

Minimal & lightweight docker image including AWS and Terraform CLI

Home Page: https://hub.docker.com/r/zenika/terraform-aws-cli

License: Apache License 2.0

Dockerfile 75.67% Shell 24.33%

terraform-aws-cli's Introduction

lint-build-test push-latest release

License Docker Pulls

Terraform and AWS CLI Docker image

๐Ÿ“ฆ Supported tags and respective Dockerfile links

Available image tags can be found on the Docker Hub registry: zenika/terraform-aws-cli

The following image tag strategy is applied:

  • zenika/terraform-aws-cli:latest - build from master
    • Included CLI versions can be found in the Dockerfile
  • zenika/terraform-aws-cli:release-S.T_terraform-UU.VV.WW_awscli-XX.YY.ZZ - build from releases
    • release-S.T is the release tag
    • terraform-UU.VV.WWW is the Terraform version included in the image
    • awscli-XX.YY.ZZ is the AWS CLI version included in the image

Please report to the releases page for the changelogs. Any other tags are not supported.

๐Ÿ’ก Motivation

The goal is to create a minimalist and lightweight image with these tools in order to reduce network and storage impact.

This image gives you the flexibility to be used for development or as a base image as you see fits.

๐Ÿ”ง What's inside ?

Tools included:

This image uses a non-root user with a UID and GID of 1001 to conform with docker security best practices.

๐Ÿš€ Usage

๐Ÿš Launch the CLI

Set your AWS credentials (optional) and launch the container, for instance using the latest image:

echo AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY
echo AWS_SECRET_ACCESS_KEY=YOUR_SECRET_KEY
echo AWS_DEFAULT_REGION=YOUR_DEFAULT_REGION

docker container run -it --rm -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}" -v ${PWD}:/workspace zenika/terraform-aws-cli:latest

The --rm flag will completely destroy the container and its data on exit.

โš™๏ธ Build the image

You can build the image locally directly from the Dockerfiles, using the build script.

It will :

# launch build script
./dev-build.sh

Optionally, it is possible to choose the tools desired versions using Docker builds arguments:

Be aware that tests will fail and should be updated if you choose different CLI versions.

# Set tools desired versions
AWS_CLI_VERSION=1.18.189
TERRAFORM_VERSION=0.14.0

# launch the build script with parameters
./dev-build.sh $AWS_CLI_VERSION $TERRAFORM_VERSION

๐Ÿ™ Contributions

Do not hesitate to contribute by filling an issue or a PR !

๐Ÿ“– License

This project is under the Apache License 2.0

with love by zenika

terraform-aws-cli's People

Contributors

bgauduch avatar renovate[bot] avatar jmcguffee avatar loic5 avatar mattvanstone avatar pczora avatar vat0599 avatar coliss86 avatar kstephens- 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.