Bug: sam deploy using --template parameter does not package application properly #7604
Labels
area/deploy
sam deploy command
blocked/more-info-needed
More info is needed from the requester. If no response in 14 days, it will become stale.
Description:
Running
sam deploy --template template.yml
fails to package app appropriatelySteps to reproduce:
Observed result:
Function fails with
"ERROR","message":{"errorType":"ImportModuleError","errorMessage":"Error: Cannot find module 'app'
Expected result:
Packaging of function should be same with or without --template parameter
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.126.0{
"version": "1.126.0",
"system": {
"python": "3.8.20",
"os": "macOS-14.6.1-x86_64-i386-64bit"
},
"additional_dependencies": {
"docker_engine": "Not available",
"aws_cdk": "2.138.0 (build 6b41c8b)",
"terraform": "1.5.7"
},
"available_beta_feature_env_vars": [
"SAM_CLI_BETA_FEATURES",
"SAM_CLI_BETA_BUILD_PERFORMANCE",
"SAM_CLI_BETA_TERRAFORM_SUPPORT",
"SAM_CLI_BETA_RUST_CARGO_LAMBDA"
]
}
Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: