Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions aws/logs_monitoring/tools/installation_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
# Tests installation and deployment process of forwarder, and that CloudFormation template works.
set -e

# Deploy the stack to a less commonly used region to avoid any problems with limits
AWS_REGION="us-west-2"

# Move into the root directory, so this script can be called from any directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR/..
Expand Down Expand Up @@ -43,12 +46,12 @@ echo "Setting params ${PARAM_LIST}"
STACK_NAME="datadog-forwarder-integration-stack-${RUN_ID}"
echo "Creating stack ${STACK_NAME}"
aws cloudformation create-stack --stack-name $STACK_NAME --template-url $TEMPLATE_URL --capabilities "CAPABILITY_AUTO_EXPAND" "CAPABILITY_IAM" --on-failure "DELETE" \
--parameters=$PARAM_LIST
--parameters=$PARAM_LIST --region $AWS_REGION

echo "Waiting for stack to complete creation ${STACK_NAME}"
aws cloudformation wait stack-create-complete --stack-name $STACK_NAME
aws cloudformation wait stack-create-complete --stack-name $STACK_NAME --region $AWS_REGION

echo "Completed stack creation"

echo "Cleaning up stack"
aws cloudformation delete-stack --stack-name $STACK_NAME
aws cloudformation delete-stack --stack-name $STACK_NAME --region $AWS_REGION