Docker images help maintain cloud infrastructure with Terraform, Kubernetes and Helm.
Use docker-compose.yml as a reference, add a CLI container to your project to keep Cloud credentials are isolated from a local machine and use cloud CLI in one command.
- Add service to docker-compose.yml. See ./docker-compose.yml as an example.
- Run
docker compose run aws-cli bash
to get into the container. - Then as usual use
aws
,gcloud
,az
withterraform
,kubectl
, andhelm
to log in your cloud account and manage your infrastructure.
example for google cloud:gcloud auth login
,terraform init
,terraform plan
,terraform apply
,kubectl get pods
,helm list