Replies: 4 comments 2 replies
-
Thank you for your request. It is possible to override |
Beta Was this translation helpful? Give feedback.
-
I also have a SAM template where 90% of the functions need to invoke inside a VPC - so I use the Globals to set VpcConfig.
I would like a way to override the Global for VpcConfig in a function so it can invoke anywhere and not have the disadvantage of a slower cold start. Since the settings are additive I cant just set an empty array on the function like this:
I know I could set the VpcConfig on each function that needs it, but it will be hundreds of functions throughout my project. |
Beta Was this translation helpful? Give feedback.
-
Hi after team discussion, we will support introducing a new resource attribute called
Consider the example where I have a mix of
Note that this feature is already merged, see #3386. It will take about 2~3 weeks to gradually roll out to all regions. |
Beta Was this translation helpful? Give feedback.
-
Marking this feature request as closed. Please expect 2~3 weeks from today of deployment time to be generally available. |
Beta Was this translation helpful? Give feedback.
-
Issue:
Currently, Globals are applied to all functions defined in the AWS SAM template, which can cause issues when users want to customize specific functions without affecting the others. This issue has been reported by some users, and a possible solution is to introduce a new property to the function definition that allows users to selectively ignore Globals for specific functions.
Proposed Solution:
Add a new property to the function definition, such as "IgnoreGlobals" or similar, that allows users to specify whether or not Globals should be applied to that particular function. This would give users more control over how Globals are applied in their AWS SAM templates and would make it easier to customize functions without affecting the entire template.
Please share your thoughts or feedback on this proposal. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions