HUB
Sign inSign up
aws-cli logo

grycap/aws-cli

By grycap

•Updated over 9 years ago

Alpine-less AWS CLI Docker Image

Image
0

743

grycap/aws-cli repository overview

⁠Alpine-less AWS CLI Docker Image

Docker image for AWS CLI⁠ based on the bitnami/minideb:jessie⁠ Docker image.

⁠Local Usage

Credentials can be passed through the following environment variables:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY

Assuming that these variables are already populated on your machine, you would list all the EC2 instances by issuing the command:

docker run --rm -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY grycap/aws-cli ec2 describe-instances

Further information is available in the AWS CLI documentation⁠.

⁠Usage in AWS Lambda via SCAR

You can run AWS CLI in AWS Lambda via SCAR⁠ using the following procedure:

  1. Create the Lambda function
scar init -n lambda-aws-cli grycap/aws-cli
  1. Execute the Lambda function
scar run -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY lambda-aws-cli ec2 describe-instances

You have the AWS CLI running on AWS Lambda.

Tag summary

Content type

Image

Digest

Size

38.4 MB

Last updated

over 9 years ago

docker pull grycap/aws-cli