title: AWS Lambda S3 Bucket Notification via CloudFormation
body: <p>I'm trying to create a Lambda notification via CloudFormation but getting an error about the ARN format being incorrect.</p>
  
  <p>Either my CloudFormation is wrong or it doesn't support the Lambda preview yet.</p>
  
  <pre><code>{
    "AWSTemplateFormatVersion": "2010-09-09",
    "Parameters": {
      "LambdaArn": {
        "Type": "String",
        "Default": "arn:aws:lambda:{some-region}:{some-account-id}:function:{some-fn-name}"
      }
    },
    "Resources": {
      "EventArchive": {
        "Type": "AWS::S3::Bucket",
        "Properties": {
          "NotificationConfiguration": {
            "TopicConfigurations": [
              {
                "Event": "s3:ObjectCreated:Put",
                "Topic": {
                  "Ref": "LambdaArn"
                }
              }
            ]
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>But when I push up this CloudFormation I get the message:</p>
  
  <pre><code>The ARN is not well formed
  </code></pre>
  
  <p>Does anyone have idea as to what this means? I know the example above has been modified so not to use my <em>actual</em> ARN, but in my actual code I've copied the ARN directly from the GUI.</p>
  
  <p>Also, interestingly I was able to create the notification via the AWS console, and so I just assume that AWS CloudFormation doesn't yet support this feature (even though that's not quite clear I don't think when reading the documentation).</p>