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 ChildStackHelloWorldLayerName: Type: String Description: Name of the HelloWorldLayer in ChildStack which will be used with current deployment Resources: HelloWorldFunction: Type: AWS::Serverless::Function Properties: CodeUri: root_function/ Handler: root_function.lambda_handler Runtime: python3.7 Layers: - Ref: HelloWorldLayer Tracing: Active HelloWorldLayer: Type: AWS::Serverless::LayerVersion Properties: LayerName: !Ref HelloWorldLayerName Description: Hello World Layer ContentUri: root_layer/ CompatibleRuntimes: - python3.7 Metadata: BuildMethod: python3.7 ChildStack: Type: AWS::Serverless::Application Properties: Location: child_stack/template.yaml Parameters: ParentLayer: !Ref HelloWorldLayer HelloWorldLayerName: !Ref ChildStackHelloWorldLayerName