Skip to content

Instantly share code, notes, and snippets.

@Razz
Created July 25, 2019 20:03
Show Gist options
  • Save Razz/18aa49b72ff205d11d36b207e690ad32 to your computer and use it in GitHub Desktop.
Save Razz/18aa49b72ff205d11d36b207e690ad32 to your computer and use it in GitHub Desktop.
FROM alpine:latest
MAINTAINER Alex Cornford <alex.cornford@contino.io>
ENV KEY_ID=""
ENV SECRET_KEY=""
ENV INSTANCE=""
ENV COMMAND=""
ENV AWS_DEFAULT_REGION="us-east-2"
RUN apk add -U py-pip
RUN pip install awscli
RUN export AWS_ACCESS_KEY_ID=$KEY_ID
RUN export AWS_SECRET_ACCESS_KEY=$SECRET_KEY
CMD ["aws", "ec2", "describe-instances"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment