You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have seen a common pattern in APIs that are powered by lambdas where database migrations are made using one of those lambdas (just not exposed as part of the API). While playing around with this setup I have noticed that if you use esbuild to bundle your lambdas you don't get the needed SQL files to run your migrations shipped when you deploy them.
Running the sam build command removes all other files that are not JS and source maps.
Am I missing something or is this a legitimate problem?
Thank you
The text was updated successfully, but these errors were encountered:
Thanks @ulissesferreira for raising this issue. Currently SAM CLI does not support adding any files that do not related to the lambda function code to the build output. We already have this feature request to cover this case. I am going to close your issue as it is duplicate with the Lambda Builder's feature request. Please keep an eye on the Lambda Builder's issue to keep updated.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Hello all,
I have seen a common pattern in APIs that are powered by lambdas where database migrations are made using one of those lambdas (just not exposed as part of the API). While playing around with this setup I have noticed that if you use esbuild to bundle your lambdas you don't get the needed SQL files to run your migrations shipped when you deploy them.
Running the
sam build
command removes all other files that are not JS and source maps.Am I missing something or is this a legitimate problem?
Thank you
The text was updated successfully, but these errors were encountered: