-
Notifications
You must be signed in to change notification settings - Fork 14
/
test-deploy.sh
executable file
·9 lines (8 loc) · 1.27 KB
/
test-deploy.sh
1
2
3
4
5
6
7
8
9
#!/bin/bash
# synthesize cdk with context inputs
cdk bootstrap --context adminEmail="test-email@email.com" --context quicksightUserName="test-email@email.com" --context repoBranch="main" --context deployQuicksightStack=false --context deploySagemakerStack=true --context deployWebStack=true --context nagEnabled=true #bootstraps cdk in the region
cdk synth --context adminEmail="test-email@email.com" --context quicksightUserName="test-email@email.com" --context repoBranch="main" --context deployQuicksightStack=false --context deploySagemakerStack=true --context deployWebStack=true --context nagEnabled=true
wait
echo "🚀 deploying all"
cdk deploy --all --context adminEmail="test-email@email.com" --context quicksightUserName="test-email@email.com" --context repoBranch="main" --context deployQuicksightStack=false --context deploySagemakerStack=true --context deployWebStack=true --context nagEnabled=true
#cdk destroy --all --force --context adminEmail="test-email@email.com" --context quicksightUserName="test-email@email.com" --context repoBranch="main" --context deployQuicksightStack=false --context deploySagemakerStack=true --context deployWebStack=true --context nagEnabled=true #destroys all cdk resources in the defined region --force flag prevents the required "y" confirmation