title: AWS Cloud formation add multiple layers to lambda function
body: <p>I have added one layer to my Lambda function through CloudFormation. Now I have a requirement to add one more layer to my function. Basically, I need two layers in my existing Lambda function. Is it possible?  I tried searching the AWS docs but I don't see it.</p>
  <pre class="lang-yaml prettyprint-override"><code>Resources:
    LambdaLayer:
      Type: &quot;AWS::Lambda::LayerVersion&quot;
      Properties:
      CompatibleRuntimes:
      - python3.8
      Content:
      S3Bucket: !Sub &quot;hello-${AWS::Region}&quot;
      S3Key: !Sub &quot;myapp/layer1.zip&quot;
      LayerName: &quot;layer1&quot;
  
    LambdaFunction:
      Type: &quot;AWS::Lambda::Function&quot;
      Properties:
      Code:
      S3Bucket: hello
      S3Key: myapp/function.zip&quot;
      FunctionName: &quot;hello-function&quot;
      Handler: &quot;hello-function.lambda_handler&quot;
      Layers:
      - !Ref LambdaLayer
  </code></pre>