This repository was archived by the owner on Mar 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -190,14 +190,16 @@ invoke_lambda:
190
190
create_s3_bucket :
191
191
aws s3 mb " s3://$( AWS_BUCKET) " --profile $(AWS_PROFILE )
192
192
193
+ delete_s3_bucket :
194
+ aws s3 ls " s3://$( AWS_BUCKET) " 2> /dev/null > /dev/null && aws s3 rb " s3://$( AWS_BUCKET) " --force
195
+
193
196
delete_layer :
194
197
aws lambda list-layer-versions --layer-name nio-swift-lambda-runtime-5-1 --output text | \
195
198
awk ' { print $$NF }' | \
196
199
xargs aws lambda delete-layer-version --layer-name $(SWIFT_LAMBDA_LIBRARY ) --version-number
197
200
198
201
nuke : clean_layer clean_lambda delete_layer
199
202
-aws lambda get-function --function-name $(LAMBDA_FUNCTION_NAME ) 2> /dev/null > /dev/null && aws lambda delete-function --function-name $(LAMBDA_FUNCTION_NAME )
200
- -aws s3 ls " s3://$( AWS_BUCKET) " 2> /dev/null > /dev/null && aws s3 rb " s3://$( AWS_BUCKET) " --force
201
203
202
204
# quick commands - no clean
203
205
quick_build_lambda : build_lambda create_build_directory
Original file line number Diff line number Diff line change @@ -325,7 +325,15 @@ Sometimes you want to go back to a clean slate and we have a command for that wh
325
325
make nuke
326
326
```
327
327
328
- That command will clean your local build folders and delete S3 buckets, lambdas and layers created based off the configuration you use.
328
+ That command will clean your local build folders then delete lambdas and layers created based off the configuration you use.
329
+
330
+ ### 7) Delete S3 bucket
331
+
332
+ You can delete the S3 bucket where you hold your lambdas and layers with the command below:
333
+
334
+ ``` console
335
+ make delete_s3_bucket
336
+ ```
329
337
330
338
# Update the lambda layer
331
339
You can’t perform that action at this time.
0 commit comments