-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathclean.ps1
26 lines (24 loc) · 1.27 KB
/
clean.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#########################################################
# Clean resources created for the first Worker Services #
#########################################################
# 1. Navigate to the CDK project folder for the Worker Service that persists into DynamoDB
# 2. Destroy all resources without ask for confirmation before destroying the stacks
Set-Location ServicesWorkerDb/src/infra/
cdk destroy -f
Set-Location ../../../
##########################################################
# Clean resources created for the second Worker Services #
##########################################################
# 1. Navigate to the CDK project folder for the Worker Service that persists into S3
# 2. Destroy all resources without ask for confirmation before destroying the stacks
Set-Location ServicesWorkerIntegration/src/infra/
cdk destroy -f
Set-Location ../../../
############################################################
# Clean resources created for the WebAPI #
############################################################
# 1. Navigate to the CDK project folder for the WebAPI project
# 2. Destroy all resources without ask for confirmation before destroying the stacks
Set-Location WebAPI/src/infra/
cdk destroy -f
Set-Location ../../../