Bug: SAM Deployment Issue: Bootstrap File Not Found Despite Successful Build and Upload #7329
Labels
stage/needs-triage
Automatically applied to new issues and PRs, indicating they haven't been looked at.
Description:
I am facing an issue with deploying a Golang SAM application in a monorepo setup. The deployment succeeds, but the API endpoint returns an internal service error. The error from CloudWatch indicates that the bootstrap file could not be found, despite being present in the expected location.
Steps to reproduce:
Observed result:
Build and Deployment is successful, but accessing the API endpoint results in an internal service error. CloudWatch logs show the following error:
The bootstrap file is in
/functions/lambda-demo/.aws-sam/build/LambdaDemoFunction
, but this build folder is not zipped and uploaded to S3 as intended. Instead, the entire lambda-demo directory is uploaded to S3.Expected result:
The deployment should result in the correct packaging of the LambdaDemoFunction folder, ensuring the bootstrap binary is in the expected location, and this folder should be zipped and uploaded to S3, allowing the API endpoint to function correctly.
The text was updated successfully, but these errors were encountered: