@@ -736,6 +736,7 @@ DeployTemplate()
736736 # ########################################
737737 # Need to update the ACTION_CONCLUSTION #
738738 # ########################################
739+ ERROR_FOUND=1
739740 ACTION_CONCLUSTION=' failure'
740741 ACTION_OUTPUT=" Failed to deploy SAM App"
741742 else
@@ -755,10 +756,17 @@ GetOutput()
755756 # Need to get the generated output from the stack
756757 # to display back to the user for consumption
757758
759+ # #########
760+ # Prints #
761+ # #########
762+ echo " --------------------------------------------"
763+ echo " Gathering Output from deployed SAM application..."
764+
758765 # ##########################
759766 # Get the output from AWS #
760767 # ##########################
761- OUTPUT_CMD=($( aws cloudformation --region " $REGION " describe-stacks --stack-name " $AWS_STACK_NAME " --query " Stacks[0].Outputs[*]" ) )
768+ IFS=$' \n ' # Set IFS to newline
769+ OUTPUT_CMD=($( aws cloudformation describe-stacks --stack-name " $AWS_STACK_NAME " --query " Stacks[0].Outputs[*]" --region " $AWS_REGION " ) )
762770
763771 # ######################
764772 # Load the error code #
@@ -783,6 +791,7 @@ GetOutput()
783791 # ###############################################
784792 # Itterate through all lines returned from AWS #
785793 # ###############################################
794+ echo " Output from deployed AWS SAM Application:[$AWS_STACK_NAME ]:"
786795 for LINE in " ${OUTPUT_CMD[@]} "
787796 do
788797 # Print the output to the logfile
0 commit comments