File tree 2 files changed +9
-1
lines changed
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:
20
20
./scripts/deploy.sh
21
21
```
22
22
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.
24
28
25
29
### Deployment instructions using AWS SAM (Serverless Application Model)
26
30
Original file line number Diff line number Diff line change 15
15
16
16
set -eu
17
17
18
+ # Lambda Function name (must exist in AWS Lambda)
18
19
lambda_name=SwiftSample
20
+
21
+ # S3 bucket name to upload zip file (must exist in AWS S3)
19
22
s3_bucket=swift-lambda-test
23
+
20
24
executables=( $( swift package dump-package | sed -e ' s|: null|: ""|g' | jq ' .products[] | (select(.type.executable)) | .name' | sed -e ' s|"||g' ) )
21
25
22
26
if [[ ${# executables[@]} = 0 ]]; then
You can’t perform that action at this time.
0 commit comments