AWS SAM YAML template - Unknown Tag !Ref
You can add custom YAML tags in your settings.json
:
"yaml.customTags": [
"!Equals sequence",
"!FindInMap sequence",
"!GetAtt",
"!GetAZs",
"!ImportValue",
"!Join sequence",
"!Ref",
"!Select sequence",
"!Split sequence",
"!Sub"
]
First validate your extensions, I eliminated the extension called Redhat yaml and problems solved, I have the next extensions and everything is ok.
- vscode-cfn-lint
- Serverless IDE
- aws-cloudformation-yaml
- AWS Toolkit for Visual Studio Code