title: Invalid Layer Arn Error when using ARN value from SSM parameters
body: <p>Lambda layer ARN is stored in SSM parameter and need to access the value of this parameter to put as an Layer arn while defining a function and attaching a layer to it.</p>
  <p>ERROR: SayHelloLayerARN is an Invalid Layer Arn.</p>
  <p>Parameter Name in Parameter Store: SayHelloLayerARN</p>
  <p>Here is the SAM template:</p>
  <pre><code>AWSTemplateFormatVersion: '2010-09-09'
  Transform: AWS::Serverless-2016-10-31
  Description: &gt;
    CREATE-WITH-SSM
  
    Sample SAM Template for CREATE-WITH-SSM
  
  Parameters:
    HelloLayerARN:
      Type: AWS::SSM::Parameter::Value&lt;String&gt;
      Default: SayHelloLayerARN
      Description: Layer ARN from SSM
  
  Globals:
    Function:
      Timeout: 3
  
  Resources:
    HelloWorldFunction:
      Type: AWS::Serverless::Function
      Properties:
        CodeUri: hello_world/
        Handler: app.lambda_handler
        Runtime: python3.8
        Environment:
          Variables:
            LAYER_NAME: !Ref HelloLayerARN
        Layers:
          - !Ref HelloLayerARN
        Events:
          HelloWorld:
            Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api
            Properties:
              Path: /hello
              Method: get
  
  </code></pre>