Skip to content

Commit

Permalink
moved deploy and execute scripts to new scripts folder
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcasalboni committed Jan 27, 2020
1 parent f01e4c7 commit d00bc47
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions execute.sh → scripts/execute.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# config
STACK_NAME=lambda-power-tuning
INPUT=$(cat sample-execution-input.json) # or use a static string
INPUT=$(cat scripts/sample-execution-input.json) # or use a static string

# retrieve state machine ARN
STATE_MACHINE_ARN=$(aws cloudformation describe-stacks --stack-name $STACK_NAME --query 'Stacks[0].Outputs[?OutputKey==`StateMachineARN`].OutputValue' --output text)
Expand All @@ -22,7 +22,7 @@ do
sleep 1
elif test "$STATUS" == "FAILED"; then
# exit if failed
echo "The execution failed (check execution logs)"
echo -e "\nThe execution failed, you can check the execution logs with the following script:\naws stepfunctions get-execution-history --execution-arn $EXECUTION_ARN"
break
else
# print execution output if succeeded
Expand Down
File renamed without changes.

0 comments on commit d00bc47

Please sign in to comment.