Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
brainstorm committed Nov 29, 2023
1 parent d4ef4d1 commit 6f5512e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/workload/stateful/filemanager/scripts/deploy.sh
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 --require-approval never
cd ../database && sqlx migrate run && cd ..

aws s3 mb s3://$FM_BUCKET
aws s3api put-object --bucket $FM_BUCKET --key test

./scripts/logs.sh
6 changes: 6 additions & 0 deletions lib/workload/stateful/filemanager/scripts/logs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh -x

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

0 comments on commit 6f5512e

Please sign in to comment.