Skip to content

Commit 1c2f449

Browse files
committed
use hardcoded table names for getting started branch
1 parent 5666289 commit 1c2f449

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

4-run-local.sh

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#!/bin/bash
22
set -eo pipefail
33
export AWS_REGION=$(aws configure get region)
4-
export NOTIFICATION_TOPIC=$(aws cloudformation describe-stack-resource --stack-name scorekeep --logical-resource-id notificationTopic --query 'StackResourceDetail.PhysicalResourceId' --output text)
5-
export GAME_TABLE=$(aws cloudformation describe-stack-resource --stack-name scorekeep --logical-resource-id gameTable --query 'StackResourceDetail.PhysicalResourceId' --output text)
6-
export MOVE_TABLE=$(aws cloudformation describe-stack-resource --stack-name scorekeep --logical-resource-id moveTable --query 'StackResourceDetail.PhysicalResourceId' --output text)
7-
export SESSION_TABLE=$(aws cloudformation describe-stack-resource --stack-name scorekeep --logical-resource-id sessionTable --query 'StackResourceDetail.PhysicalResourceId' --output text)
8-
export STATE_TABLE=$(aws cloudformation describe-stack-resource --stack-name scorekeep --logical-resource-id stateTable --query 'StackResourceDetail.PhysicalResourceId' --output text)
9-
export USER_TABLE=$(aws cloudformation describe-stack-resource --stack-name scorekeep --logical-resource-id userTable --query 'StackResourceDetail.PhysicalResourceId' --output text)
4+
export TOPICS=$(aws sns list-topics --output text | grep scorekeep-sns-topic)
5+
export NOTIFICATION_TOPIC=$(echo $TOPICS | cut -d' ' -f 2)
6+
export GAME_TABLE=scorekeep-game
7+
export MOVE_TABLE=scorekeep-move
8+
export SESSION_TABLE=scorekeep-session
9+
export STATE_TABLE=scorekeep-state
10+
export USER_TABLE=scorekeep-user
1011

1112
./gradlew bootrun

6-cleanup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -eo pipefail
33
aws cloudformation delete-stack --stack-name scorekeep
4-
echo "Deleted function stack"
4+
echo "Deleted application stack"
55
if [ -f bucket-name.txt ]; then
66
ARTIFACT_BUCKET=$(cat bucket-name.txt)
77
while true; do

0 commit comments

Comments
 (0)