AWSTemplateFormatVersion: "2010-09-09" Transform: AWS::Serverless-2016-10-31 Globals: Function: Timeout: 10 Parameters: HelloWorldLayerName: Type: String Description: Name of the HelloWorldLayer which will be used with current deployment Resources: HelloWorldFunction: Type: AWS::Serverless::Function Properties: CodeUri: function/ Handler: app.lambda_handler Runtime: python3.7 Layers: - Ref: HelloWorldLayer Tracing: Active HelloWorldLayer: Type: AWS::Serverless::LayerVersion Properties: LayerName: !Ref HelloWorldLayerName Description: Hello World Layer ContentUri: layer/ CompatibleRuntimes: - python3.7 Metadata: BuildMethod: python3.7