AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Description: Layer Test Parameters: LayerArn: Default: 'arn:aws:lambda:us-east-1:764866452798:layer:chrome-aws-lambda:4' Description: Layer Arn Type: String Resources: FunctionWithLayer: Type: AWS::Serverless::Function Properties: CodeUri: Bucket: <%REPO_BUCKET%> Key: a44a03c9-ccb1-4ddc-b196-8e2c9fdeec35 Handler: app.lambda_handler Runtime: python3.7 Layers: - Ref: LayerArn VpcConfig: SecurityGroupIds: - Fn::ImportValue: !Sub ${VpcStackName}-AppSG SubnetIds: - Fn::ImportValue: !Sub ${VpcStackName}-AppSubnet1 - Fn::ImportValue: !Sub ${VpcStackName}-AppSubnet2