aws-samples / aws-sam-terraform-examples

MIT No Attribution
46 stars 14 forks source link

Specify shell type for build script #5

Closed philipws closed 1 year ago

philipws commented 1 year ago

Shell type is not specified resulting in '[[' and 'pushd' from failing when not using bash.

null_resource.build_lambda_function (local-exec): Executing: ["/bin/sh" "-c" "./py_build.sh \"./src\" \"build\" \"publishBookReview.zip\" Function"]
null_resource.build_lambda_function (local-exec): building Function ./src into build
null_resource.build_lambda_function (local-exec): ./py_build.sh: 11: [[: not found
null_resource.build_lambda_function (local-exec): /workspaces/aws-sam-terraform-examples/aws-sam-terraform-examples/zip_based_lambda_functions/api-lambda-dynamodb-example
null_resource.build_lambda_function (local-exec): ./py_build.sh: 23: pushd: not found
null_resource.build_lambda_function (local-exec): mv: cannot stat 'build/tmp_building/publishBookReview.zip': No such file or directory
null_resource.build_lambda_function: Creation complete after 35s [id=7104882419102392583]