Skip to content

Instantly share code, notes, and snippets.

@richardhboyd
Created September 3, 2021 22:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Dockerfile for running the AWS SAM translator locally
FROM python:3.7.9
ENV AWS_DEFAULT_REGION=us-west-2
RUN git clone https://github.com/aws/serverless-application-model.git
COPY sample-template.yaml /serverless-application-model/sample-template.yaml
WORKDIR serverless-application-model
RUN pip install boto3
RUN pip install -e '.[dev]'
RUN python ./bin/sam-translate.py --template-file=sample-template.yaml
RUN cat transformed-template.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment