Skip to content

Commit a6388d9

Browse files
committed
minor extensions to deploy.sh script
1 parent 9248599 commit a6388d9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bin/deploy.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
export AWS_DEFAULT_REGION=us-east-1
4+
35
awslocal s3 mb s3://localstack-thumbnails-app-images
46
awslocal s3 mb s3://localstack-thumbnails-app-resized
57

@@ -85,3 +87,11 @@ awslocal s3api put-bucket-notification-configuration \
8587
awslocal s3 mb s3://webapp
8688
awslocal s3 sync --delete ./website s3://webapp
8789
awslocal s3 website s3://webapp --index-document index.html
90+
91+
echo
92+
echo "Fetching function URL for 'presign' Lambda..."
93+
awslocal lambda list-function-url-configs --function-name presign | jq -r '.FunctionUrlConfigs[0].FunctionUrl'
94+
echo "Fetching function URL for 'list' Lambda..."
95+
awslocal lambda list-function-url-configs --function-name list | jq -r '.FunctionUrlConfigs[0].FunctionUrl'
96+
97+
echo "Now open the Web app under https://webapp.s3.localhost.localstack.cloud/index.html and paste the function URLs above (make sure to use https:// as protocol)"

0 commit comments

Comments
 (0)