AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Resources: StreamingFunction: Type: AWS::Serverless::Function Properties: CodeUri: src/ Handler: index.handler Runtime: nodejs16.x Timeout: 30 MemorySize: 512 AutoPublishAlias: live FunctionUrlConfig: AuthType: AWS_IAM InvokeMode: RESPONSE_STREAM MyFunctionUrl: Type: AWS::Lambda::Url Properties: TargetFunctionArn: !Ref StreamingFunction AuthType: AWS_IAM InvokeMode: RESPONSE_STREAM Outputs: StreamingFunction: Description: "Streaming Lambda Function ARN" Value: !GetAtt StreamingFunction.Arn StreamingFunctionURL: Description: "Streaming Lambda Function URL" Value: !GetAtt MyFunctionUrl.FunctionUrl