Skip to content

Commit

Permalink
feat: create superwerker stack with providing an email address for no…
Browse files Browse the repository at this point in the history
…tifications
  • Loading branch information
sbstjn committed Mar 10, 2021
1 parent d935c46 commit 70185b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/setup-test-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ aws sts get-caller-identity --profile test_account_${aws_account_id} --region ${
# setup superwerker in vended account
aws --profile test_account_${aws_account_id} --region ${superwerker_region} cloudformation deploy --stack-name superwerker --template-file templates/superwerker.template.yaml --parameter-overrides Domain=${ROOT_MAIL_DOMAIN} Subdomain=${aws_account_id} QSS3BucketName=${TEMPLATE_BUCKET_NAME} QSS3BucketRegion=${TEMPLATE_REGION} QSS3KeyPrefix=${TEMPLATE_PREFIX} --capabilities CAPABILITY_AUTO_EXPAND CAPABILITY_IAM --no-fail-on-empty-changeset &
while ! domain_name_servers=$(aws --profile test_account_${aws_account_id} --region ${superwerker_region} ssm get-parameter --name /superwerker/domain_name_servers --query Parameter.Value --output text); do sleep 10; done
aws --profile ${SOURCE_PROFILE} cloudformation deploy --stack-name superwerker-pipeline-dns-wiring-${aws_account_id} --template-file tests/pipeline-dns-wiring.yaml --parameter-overrides RootMailDelegationTarget=$domain_name_servers RootMailDomain=${ROOT_MAIL_DOMAIN} RootMailSubdomain=${aws_account_id} --no-fail-on-empty-changeset
aws --profile ${SOURCE_PROFILE} cloudformation deploy --stack-name superwerker-pipeline-dns-wiring-${aws_account_id} --template-file tests/pipeline-dns-wiring.yaml --parameter-overrides RootMailDelegationTarget=$domain_name_servers RootMailDomain=${ROOT_MAIL_DOMAIN} RootMailSubdomain=${aws_account_id} NotificationsMail=root+notifications@${aws_account_id}.${ROOT_MAIL_DOMAIN} --no-fail-on-empty-changeset
sleep 1800 # give superwerker stack time to finish (Control Tower needs ~30min)
aws --profile test_account_${aws_account_id} --region ${superwerker_region} cloudformation wait stack-create-complete --stack-name superwerker

Expand Down

0 comments on commit 70185b4

Please sign in to comment.