-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify development and debugging with ./scripts/(re)deploy.sh and .…
…/scripts/logs.sh, making those scripts fully idempotent and easy to use
- Loading branch information
1 parent
da57062
commit 74fdb4e
Showing
5 changed files
with
23 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 0 additions & 58 deletions
58
lib/workload/stateful/filemanager/deploy/aws-get-filemanager-logs.sh
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
lib/workload/stateful/filemanager/deploy/redeploy_test_localstack.sh
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh -x | ||
|
||
export AWS_ENDPOINT_URL=http://localhost:4566 | ||
export FM_BUCKET=filemanager-test-ingest | ||
|
||
cd deploy | ||
yes | npx cdklocal destroy | ||
yes | npx cdklocal bootstrap | ||
yes | npx cdklocal deploy | ||
cd ../database && sqlx migrate run && cd .. | ||
|
||
aws s3 mb s3://$FM_BUCKET | ||
aws s3api put-object --bucket $FM_BUCKET --key test | ||
|
||
./scripts/logs.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
export AWS_ENDPOINT_URL=http://localhost:4566 | ||
|
||
group_name=$(aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output text) | ||
aws logs tail "$group_name" --follow |