File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ Steps to deploy this sample to AWS Lambda using the AWS CLI:
2020 ./scripts/deploy.sh
2121 ```
2222
23- Note: This script assumes you have AWS CLI installed and credentials setup in ` ~/.aws/credentials ` .
23+ Notes:
24+ - This script assumes you have AWS CLI installed and credentials setup in ` ~/.aws/credentials ` .
25+ - The default lambda function name is ` SwiftSample ` . You can specify a different one updating ` lambda_name ` in ` deploy.sh `
26+ - Update ` s3_bucket=swift-lambda-test ` in ` deploy.sh ` before running (AWS S3 buckets require a unique global name)
27+ - Both lambda function and S3 bucket must exist before deploying for the first time.
2428
2529### Deployment instructions using AWS SAM (Serverless Application Model)
2630
Original file line number Diff line number Diff line change 1515
1616set -eu
1717
18+ # Lambda Function name (must exist in AWS Lambda)
1819lambda_name=SwiftSample
20+
21+ # S3 bucket name to upload zip file (must exist in AWS S3)
1922s3_bucket=swift-lambda-test
23+
2024executables=( $( swift package dump-package | sed -e ' s|: null|: ""|g' | jq ' .products[] | (select(.type.executable)) | .name' | sed -e ' s|"||g' ) )
2125
2226if [[ ${# executables[@]} = 0 ]]; then
You can’t perform that action at this time.
0 commit comments