Created
July 25, 2019 20:03
-
-
Save Razz/18aa49b72ff205d11d36b207e690ad32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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