Just dropping this here for anyone that had the same issue as me in VS Code
If cfn-lint does not recognize custom variables such as !ImportValue, this should fix your issue
Awesome. Thanks for sharing!
Just got here, and, in the process of following the tutorial pretty closely, I don’t have a
services/notes/resources/ directory, let alone a
I do have a
/resources directory at the same level as the
/services directories, but all that’s in there is the
api-gateway-errors.yml (created in the Handle API Gateway CORS Errors chapter). I’m guessing that, at the
mv tests libs mocks node_modules services/notes step in the Getting Production Ready chapter, I should have also moved the
resources directory (i.e. change the
mv command to
mv tests libs mocks node_modules resources services/notes)?
Also, if this is indeed the first time we’re
cognito-policy.yml file, it might be more clear to indicate that we’re creating the file in this chapter rather than just updating it? That said, I may have missed its creation somewhere along the way too…