-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Resource metadata is removed when converting 'AWS::Serverless::Function' to 'AWS::Lambda::Function' #264
Comments
Also running into the same issue |
Unfortunately, resource metadata is currently not supported in SAM yet. You can submit a PR for this feature. Otherwise, we will prioritize this accordingly. |
This issue came up for cfn-lint since Metadata can be used to add inline cfn-lint configuration within a template. See aws-cloudformation/cfn-lint#1294 for details. One question I have is: should SAM (1) pass Metadata on |
Inclined towards 2. Easier to support going forward and makes more sense for every |
Metadata should be supported, and preserved, in Globals too .. to avoid C&P Metadata in multiple function |
Any updates on preserving metadata? We're trying to use the resource-level metadata in order to support configuration of custom macros. |
Closing this ticket as the fix is merged. |
This issue is still not resolved from SAM side. |
Closing this issue since it is been released with SAM v1.36.0 and SAM CLI v1.24.0. You can read more about how resource level attributes are handled in SAM via our updated documentation; https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-specification-resource-attributes.html Thanks! |
"Metadata" in AWS::Serverless::Function is removed when it's converted to AWS::Lambda::Function.
Resource metadata is useful to customize behaviors in a function on Lambda@Edge since it does not support environmental variables of Lambda.
The text was updated successfully, but these errors were encountered: