✅ Supports multi-platforms (x86_64, arm64)
This Dockerfile builds a cli where you can run terraform, gcloud, aws, azure and go commands. Combines all the major cloud provider CLIs into one handy container image.
Author: Lim Chooi Guan (AWS Architect, AWS Certified Solutions Architect)
- Docker
- Google/AWS/Azure account
aws-shell
, run aws commands with auto-complete! See herecfn-dia
, diagramming tool to visualise Cloudformation templates! See hereaws
, the AWS CLIgcloud
, the GCloud CLIaz
, the Azure CLI (X86_64 only)terraform
terratest_log_parser
go
-
Clone this repo.
-
Open up a terminal window to this directory and run:
docker build -t local/terraform-multicloud-go-cli:latest .
Note (for ARM processors): Excludes AZ CLI as no ARM version yet for Debian -
Open up a terminal to your terraform module folder, now run the container using the new image:
docker run --rm --name terraform-multicloud-go-cli -v $(pwd):/workspace -it local/terraform-multicloud-go-cli bash
-
In the container, test that your cloud CLIs and installed software work by running:
gcloud --version az version aws --version go version terraform -v
-
(Optional) To build specific platform versions, and push to your own Dockerhub registry, run:
`docker buildx build --platform linux/amd64,linux/arm64 -t YOUR_DOCKERHUB_ID/terraform-multicloud-go-cli:latest --push .`
-
Done! Have a coffee! ☕️