-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add example scripts and docs for Serverless Framework #113
Add example scripts and docs for Serverless Framework #113
Conversation
Can one of the admins verify this patch? |
3 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
hello: | ||
handler: HelloWorld | ||
memorySize: 128 | ||
events: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other templates above do not include http integration. intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it wasn't intentional. I'll remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @Andrea-Scuderi I dont have much experience with cc @gibbster @tachyonics @fabianfett that may have more experience with |
@swift-server-bot test this please |
thanks @Andrea-Scuderi can you also rebase (sorry the UI won't let me) |
cc @davedelong |
9a814a7
to
32c4e55
Compare
Examples/LambdaFunctions/README.md
Outdated
@@ -85,3 +85,86 @@ The SAM template will provide an output labelled `LambdaApiGatewayEndpoint` whic | |||
***Warning:*** This SAM template is only intended as a sample and creates a publicly accessible HTTP endpoint. | |||
|
|||
For all other samples use the AWS Lambda console. | |||
|
|||
### Deployment instructions using AWS Serverless Framework |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AWS Serverless Framework
sounds like "serverless" is a official tool provided by AWS. But that would be SAM.
I recommend changing this to something else that makes it clear that this is about serverless.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR might be a good time to also re-think the Maybe switch to:
This way all of those tools could have their own README.md and it would be clearer which tool the example is for. WDYT? |
@swift-server-bot test this please |
@jenslauterbach Note that the swift examples are the same. The
@tomerd Not sure if this is out of scope for this PR. Do we plan to reorganise the folder in this PR? |
@Andrea-Scuderi @jenslauterbach agreed this may be a good opportunity to reorganize the scripts so if not too much trouble let do that |
- Move scripts to Examples - Add a common config.sh script - Move SAM templates to Examples/scripts/SAM - Move Serverless templates to Examples/scripts/serverless - Update the scripts to work with new folder structure and config.sh - Move Dockerfile to Examples
cc70bdd
to
5f1fb8a
Compare
@tomerd
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Andrea-Scuderi these changes look great with one exception: there are two separate examples currently under the "Examples" directory and they have their own deployment setup. To prevent confusion and mixing them up, let keep the scope of changes to the "LambdaFunctions" directory and assume the scripts run from "Examples/LambdaFunctions" instead of from "Examples"
@swift-server-bot test this please |
@swift-server-bot test this please |
thanks @Andrea-Scuderi |
Motivation
Add scripting examples to support the Serverless framework
Changes
Add the serverless templates for the
LambdaFunction
examples:serverless
folder with the Serverless templatesserverless-deploy.sh
serverless-remove.sh