mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-06-02 07:27:33 +00:00
Fix https://github.com/swift-server/swift-aws-lambda-runtime/issues/520
29 lines
854 B
YAML
29 lines
854 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: 5 # Must be bigger than the time it takes to stream the output
|
|
Handler: swift.bootstrap # ignored by the Swift runtime
|
|
Runtime: provided.al2
|
|
MemorySize: 128
|
|
Architectures:
|
|
- arm64
|
|
FunctionUrlConfig:
|
|
AuthType: AWS_IAM
|
|
InvokeMode: RESPONSE_STREAM
|
|
Environment:
|
|
Variables:
|
|
LOG_LEVEL: trace
|
|
|
|
Outputs:
|
|
# print Lambda function URL
|
|
LambdaURL:
|
|
Description: Lambda URL
|
|
Value: !GetAtt StreamingNumbersUrl.FunctionUrl
|