aws-cloudformation / cfn-lint-visual-studio-code

CloudFormation Linter IDE integration, autocompletion, and documentation
https://marketplace.visualstudio.com/items?itemName=kddejong.vscode-cfn-lint
Apache License 2.0
260 stars 154 forks source link

AWS::Lambda::EventSourceMapping not recognizing a SQS as a valid Ref to resources #329

Closed richardwhiteii closed 1 year ago

richardwhiteii commented 1 year ago
  "LambdaSQSEventSource": {
    "Type": "AWS::Lambda::EventSourceMapping",
    "Properties": {
      "EventSourceArn": {
        **"_Ref_":** "DataNewQueue"  //The line showing as red.
      },
      "FunctionName": {
        "Ref": "SecureLambdaFunction"
      },
      "Enabled": true,
      "BatchSize": 5
    }
  },   
kddejong commented 1 year ago

@richardwhiteii Should be using "Fn::GetAtt": ["DataNewQueue", "Arn"]

richardwhiteii commented 1 year ago

Thank you