mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-06-02 07:27:33 +00:00
54fd25bdad
* add streaming example and doc * add streaming example to CI * fix soundness * remove unused files * correct usage of zsh env var * typo Co-authored-by: Tim Condon <0xTim@users.noreply.github.com> * typo Co-authored-by: Tim Condon <0xTim@users.noreply.github.com> * add comments Co-authored-by: Tim Condon <0xTim@users.noreply.github.com> * typo Co-authored-by: Tim Condon <0xTim@users.noreply.github.com> * add an example README with common sections + link to each example --------- Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
26 lines
728 B
YAML
26 lines
728 B
YAML
AWSTemplateFormatVersion: '2010-09-09'
|
|
Transform: AWS::Serverless-2016-10-31
|
|
Description: SAM Template for Streaming Example
|
|
|
|
Resources:
|
|
# Lambda function
|
|
StreamingNumbers:
|
|
Type: AWS::Serverless::Function
|
|
Properties:
|
|
CodeUri: .build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/StreamingNumbers/StreamingNumbers.zip
|
|
Timeout: 15
|
|
Handler: swift.bootstrap # ignored by the Swift runtime
|
|
Runtime: provided.al2
|
|
MemorySize: 128
|
|
Architectures:
|
|
- arm64
|
|
FunctionUrlConfig:
|
|
AuthType: AWS_IAM
|
|
InvokeMode: RESPONSE_STREAM
|
|
|
|
Outputs:
|
|
# print Lambda function URL
|
|
LambdaURL:
|
|
Description: Lambda URL
|
|
Value: !GetAtt StreamingNumbersUrl.FunctionUrl
|