All Projects → zenika-open-source → terraform-aws-cli

zenika-open-source / terraform-aws-cli

Licence: Apache-2.0 License
Minimal & lightweight docker image including AWS and Terraform CLI

Programming Languages

Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to terraform-aws-cli

Dockercheatsheet
🐋 Docker Cheat Sheet 🐋
Stars: ✭ 3,301 (+7951.22%)
Mutual labels:  dockerfiles, docker-image
Containers
Bioinformatics containers
Stars: ✭ 435 (+960.98%)
Mutual labels:  dockerfiles, docker-image
Awsconsolerecorder
Records actions made in the AWS Management Console and outputs the equivalent CLI/SDK commands and CloudFormation/Terraform templates.
Stars: ✭ 1,152 (+2709.76%)
Mutual labels:  terraform, aws-cli
Aws
A collection of bash shell scripts for automating various tasks with Amazon Web Services using the AWS CLI and jq.
Stars: ✭ 493 (+1102.44%)
Mutual labels:  terraform, aws-cli
Docker Php Fpm
Devilbox's PHP-FPM Docker Images
Stars: ✭ 188 (+358.54%)
Mutual labels:  dockerfiles, docker-image
Dockerfiles
lots of dockerfiles, based on alpine
Stars: ✭ 69 (+68.29%)
Mutual labels:  dockerfiles, docker-image
Picluster
A Simplified Docker Swarm or Kubernetes Alternative to Container Scheduling and Orchestration
Stars: ✭ 390 (+851.22%)
Mutual labels:  dockerfiles, docker-image
aws-sso-creds-helper
A command line util for using SSO credentials with AWS SDK on AWS CLI v2 until native support is released
Stars: ✭ 34 (-17.07%)
Mutual labels:  aws-cli, awscli
Dockerfiles
Phalcon Dockerfiles used for internal purposes.
Stars: ✭ 145 (+253.66%)
Mutual labels:  dockerfiles, docker-image
Dockerfile
📦 Dockerfiles from WebDevOps for PHP, Apache and Nginx (with PHP5 and PHP7)
Stars: ✭ 1,169 (+2751.22%)
Mutual labels:  dockerfiles, docker-image
Docker Minecraft Server
Docker image that provides a Minecraft Server that will automatically download selected version at startup
Stars: ✭ 3,642 (+8782.93%)
Mutual labels:  dockerfiles, docker-image
aws-terraform
AWS & Terraform Rocket Start Guide
Stars: ✭ 53 (+29.27%)
Mutual labels:  terraform, aws-cli
cloud-computer
☁️ The Cloud Native Computer
Stars: ✭ 5 (-87.8%)
Mutual labels:  terraform
OpenVAS-Docker
A Docker Image For the Open Vulnerability Assessment Scanner (OpenVAS)
Stars: ✭ 16 (-60.98%)
Mutual labels:  docker-image
vcs-fitcycle-deployer
Automates the deployment of EC2 based App by using Terraform and Ansible
Stars: ✭ 13 (-68.29%)
Mutual labels:  terraform
terraform-provider-terraform
Terraform terraform provider
Stars: ✭ 24 (-41.46%)
Mutual labels:  terraform
locust-docker
Docker image for the Locust load testing tool and sample Kubernetes configuration files for distributed deployment.
Stars: ✭ 17 (-58.54%)
Mutual labels:  docker-image
docker python-opencv-ffmpeg
Dockerfile containing FFmpeg, OpenCV4 and Python2/3, based on Ubuntu LTS
Stars: ✭ 38 (-7.32%)
Mutual labels:  docker-image
terraform-aws-remote-state-s3-backend
A terraform module to set up remote state management with S3 backend for your account.
Stars: ✭ 71 (+73.17%)
Mutual labels:  terraform
terraform-aws-eks
Terraform Module: Amazon EKS
Stars: ✭ 64 (+56.1%)
Mutual labels:  terraform

lint-dockerfile build-test push-latest release

dockerhub-description-update 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

Supported versions are listed in the supported_versions.json file in project root folder.

The following image tag strategy is applied:

  • zenika/terraform-aws-cli:latest - build from master
  • 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 even if available.

💡 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:

  • Terraform CLI
  • AWS CLI
  • Git for Terraform remote module usage
  • Python 3
  • jq to process JSON returned by AWS
  • 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 use the CLI as you would on any other platform, 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.sh

Optionally, it is possible to choose the tools desired versions :

# Set tools desired versions
AWS_CLI_VERSION=1.18.189
TERRAFORM_VERSION=0.14.0

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

🙏 Contributions

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

⬆️ Dependencies upgrades checklist

🚩 Similar repositories

📖 License

This project is under the Apache License 2.0

with love by zenika

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].