Sign inSign up

devteds/cloudcli

By devteds

Updated about 4 years ago

Package of CLI tools for cloud: AWS CLI, Kubectl, Helm, Terraform, doctl (DigitalOcean)

Image
0

565

devteds/cloudcli repository overview

Devteds CloudCLI

https://github.com/devteds/cloudcli

Package of commonly used CLI tools. Below are a few,

  • AWS
  • doctl (DigitalOcean CLI)
  • Terraform
  • kubectl
  • Helm
  • Ruby
  • Python
  • Git
  • Go
  • OpenSSH
  • RKE

Usage

You could download cloudcli.sh, and run. See the instructions below.

curl -o /usr/local/bin/cloudcli https://raw.githubusercontent.com/devteds/cloudcli/master/dist/cloudcli.sh
chmod +x /usr/local/bin/cloudcli

cd <WORKDIR>

# Copy SSH keys to workdir
mkdir -p .ssh
cp ~/.ssh/id_rsa* ./.ssh/

# Example Commands
cloudcli version

cloudcli exec helm version
cloudcli exec terraform version
cloudcli exec aws configure

# Work within CLI container (mounts current directory)
cloudcli ssh
> terraform version
> helm version
> aws configure
> python --version
> exit

Can't use the script or using windows?

If you are using windows, you might want to create a script similar to cloudcli.sh. Below are a few examples of running this CLI using docker image instead of the wrapper script,

Launch CLI container and SSH

docker run -it --rm \
  -v ${PWD}/.aws:/root/.aws:ro \
  -v ${PWD}/.helm:/root/.helm:rw \
  -v ${PWD}/.kube:/root/.kube:rw \
  -v ${PWD}/:/cloudcli-home/workspace/:rw \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -e AWS_REGION=us-west-2 \
  devteds/cloudcli:latest
> terraform version
> helm version
> aws configure
> python --version
> exit

Launch CLI container and run a specific CLI command

docker  run -it --rm \
  -v ${PWD}/.aws:/root/.aws:ro \
  -v ${PWD}/.helm:/root/.helm:rw \
  -v ${PWD}/.kube:/root/.kube:rw \
  -v ${PWD}/:/cloudcli-home/workspace/:rw \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -e AWS_REGION=us-west-2 \
  devteds/cloudcli:latest \
  terraform version

Source Code

https://github.com/devteds/cloudcli

Tag summary

Content type

Image

Digest

Size

676.2 MB

Last updated

over 5 years ago

docker pull devteds/cloudcli