The easiest way to integrate with serverless framework
idumchykov opened this issue · comments
Is there the easiest way to convert sam to serverless, so it would be deployed using sls deploy
command?
Hi @idumchykov 👋 thanks for asking!
You can include the SAR app in your serverless.yml
file.
The app resource (AWS::Serverless::Application
) will look like this: https://github.com/alexcasalboni/aws-lambda-power-tuning/blob/master/scripts/deploy-sar-app.yml#L6
And here's a quick guide to make it work with the Serverless Framework: https://medium.com/theburningmonk-com/how-to-include-serverless-repository-apps-in-serverless-yml-6d8233c5d684
Basically, you need to add two things:
- The
Transform: AWS::Serverless-2016-10-31
transformation (AWS SAM) - The
AWS::Serverless::Application
resource (AWS SAR app)
I'm closing this issue for now, please feel free to reopen it in case you encounter any issues.
Thanks @alexcasalboni!