Skip to content

Commit 7ae28a8

Browse files
committed
scripts
1 parent 988e787 commit 7ae28a8

5 files changed

+6
-0
lines changed

1-create-bucket.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -eo pipefail
23
BUCKET_ID=$(dd if=/dev/random bs=8 count=1 2>/dev/null | od -An -tx1 | tr -d ' \t\n')
34
BUCKET_NAME=lambda-artifacts-$BUCKET_ID
45
echo $BUCKET_NAME > bucket-name.txt
File renamed without changes.

3-run-local.sh 4-run-local.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
set -eo pipefail
13
export AWS_REGION=$(aws configure get region)
24
export NOTIFICATION_TOPIC=$(aws cloudformation describe-stack-resource --stack-name scorekeep --logical-resource-id notificationTopic --query 'StackResourceDetail.PhysicalResourceId' --output text)
35
export GAME_TABLE=$(aws cloudformation describe-stack-resource --stack-name scorekeep --logical-resource-id gameTable --query 'StackResourceDetail.PhysicalResourceId' --output text)

5-test-local.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
set -eo pipefail
3+
./bin/test-api.sh

5-cleanup.sh 6-cleanup.sh

File renamed without changes.

0 commit comments

Comments
 (0)