-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS::Serverless::Function ignores resource-based metadata #1294
Comments
I think there are a few correctable things here but I need to think through a few things. First thing is when we have It looks like when those resources are translated the metadata is lost. @jlhood I'm curious if this intentional or not. If it was copied to the newly created resources you wouldn't have an issue (I believe). We could use the original template to build the directives but the line and path information wouldn't be accurate so I'm not sure this would work correctly. |
@kddejong Thanks for tagging me. You're correct that today, SAM does not pass through One challenge is SAM can expand a Anyway, I'll open an issue for this in the SAM GitHub repo to discuss further there. |
Looks like there's an existing issue for it. Added a comment there. |
Thanks |
Hi, thanks for the update. It makes sense that some metadata may be lost since we're dealing with an I made a quick PR to include info in the README about this here: #1297. Let me know if you feel that's appropriate. Thanks for the help and clarification :) since there's already an existing issue, feel free to close this one. |
I'm going to close this issue. We can reopen later if needed. |
*cfn-lint version: 0.25.0
Hi, I have the following cfn template (just a sample, I can't provide my organization's template) named
sample-template.yaml
:When I run
cfn-lint sample-template.yaml
, I receive the following warning:When I un-comment the root-level Metadata, then the warning is gone:
I have no other files in my dir:
It seems as though for
W2531
, cfn-lint does not process resource-based metadata, but it does process root-based metadata. I believe this is a bug.I can provide more info on request.
Thank you!
The text was updated successfully, but these errors were encountered: