File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -eo pipefail
3
3
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
10
11
11
12
./gradlew bootrun
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -eo pipefail
3
3
aws cloudformation delete-stack --stack-name scorekeep
4
- echo " Deleted function stack"
4
+ echo " Deleted application stack"
5
5
if [ -f bucket-name.txt ]; then
6
6
ARTIFACT_BUCKET=$( cat bucket-name.txt)
7
7
while true ; do
You can’t perform that action at this time.
0 commit comments