aws-serverless-samfarm | full CI/CD Serverless example | Serverless library
kandi X-RAY | aws-serverless-samfarm Summary
kandi X-RAY | aws-serverless-samfarm Summary
This repo is full CI/CD Serverless example which was used in the What's New with AWS Lambda presentation at Re:Invent 2016.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of aws-serverless-samfarm
aws-serverless-samfarm Key Features
aws-serverless-samfarm Examples and Code Snippets
Community Discussions
Trending Discussions on aws-serverless-samfarm
QUESTION
Still waiting for actual AWS support for this: https://github.com/aws-samples/aws-serverless-samfarm/issues/5
How is this suppose to work?
My use case is I have an API Gateway fronted lambda that writes events to an SNS topic. I have another lambda that is subscribed to that topic.
Could these lambdas be in separate repos? yes. Is part of the purpose of using a pub/sub pattern to separate these two applications in the first place? yes.
BUT this is a simple app. The topic wont be shared with other functions and the whole thing is self contained. It should all be deployed together ideally all in the same template.
I can easily add all the functions I want to my SAM template but how do I deploy them? Should they each have a different CodeURI? That mean I need to script copying and install each lambdas dependancies into a different folder then point the codeuri's for each lambda in the template to the different folder.
Is there not better support for this?
...ANSWER
Answered 2018-Sep-22 at 09:53You can have as many AWS::Serverless::Function
resources in a single template as you want as long as they have a unique logical id.
If you prefer to keep several lambda functions in a single repository you will have to provide different CodeUri
for each lambda. For instance CodeUri: ./handler-my-lambda-one.zip
and CodeUri: ./handler-my-lambda-two.zip
.
Usually, it's a good practice to have a Makefile
in your repository that would have a build
target responsible for preparing handler-my-lambda-*.zip
something like:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aws-serverless-samfarm
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page