-
Notifications
You must be signed in to change notification settings - Fork 6
How to run locally with SAM #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Oh I think I solved it. I had to update this line in the template
to
This might have been obvious to others but not I as I have not used SAM before. |
hmmm so little issue I am discovering now. removed a path in the openapi doc. Now when I try to build with the solution I found I get this error.
The only way to get around this is by flip flopping between |
Please reopen if the provided instructions are not working for you |
I have been experimenting with contract validation with OpenAPI and looking to try it against some lambda functions. However when I attempt to run locally with
DOCKER_HOST=unix://$HOME/.docker/run/docker.sock sam local start-api --template template.yml
I only get this outputI was initially thinking it was this error with SAM but with that bootstrap error, it has me thinking its an issue with how I am deploying locally. I took at look at the swift lambda deployment but they do it slightly differently and do have some dockerfiles that add the bootstrap file to the docker image.
I can get this working using the local method in the docs
LOCAL_LAMBDA_SERVER_ENABLED=true swift run
but I am trying to mimic it being deployed so I can only use normalcurl 127.0.0.1:3000/pet/1
without all the extra json in the Quote example.I am using a slimmed down pet store openapi doc
The text was updated successfully, but these errors were encountered: