Here are high level instructions on cleaning up after you have completed the workshop.
The CloudFront origin access identity is still being used, hence, we need to delete the AssetsBucketOriginAccessIdentity manually first.
Go to CloudFront
and select your CloudFront Distribution
. Go to Origins and Origin Groups
and delete the Origin Group
and Orgin
that you created.
Go to Custom Domain Names
in API Gateway
in Singapore
and select your *.<MYSUBDOMAIN>.multi-region.xyz
domain name. Click x
button to delete it.
You created the Aurora Read Replica in Singapore
using CLI. Go to RDS
console, select Read Replica Cluster arc309-replica-cluster
, and select Promote
in Actions
. We need to promte the read replia as standalone to delete the instance. Then select Read Replica Instance arc309-replica-instance
and select Delete
in Actions
. In the deletion window, uncheck Create snapshot
, check acknowledgement
, type delete me
, and click Delete
.
You need to empty the S3 bucket to delete resources. Go to S3
console and delete workshop related buckets:
cdktoolkit-stagingbucket-xxxxxxx
in Singapore and Irelandbookstore bucket
in Singapore and Irelandpipeline bucket
in Ireland
Go to IAM and delete S3 replication role such as bookstore-S3replicationRole
.
Go to Route 53, select your Hosted Zones
, select all your Record Set
, and Delete Record Set
.
Select Health Checks
and delete existing Health Checks
for Ireland and Singapore.
You deployed 5 CloudFormation stacks in Ireland
and 3 stacks in Singapore
during the workshop.
The stacks must be deleted in the following order:
MyBookstoreSingapore
stack -Workpress-Secondary
-CDKTookit
in SingaporeMyBookstoreIreland
stack -Workpress-primary
-hostedZone
-CDKTookit
-aws-cloud9
in Ireland (You can only delete theMyBookstoreIreland
stack 24 hours later after you added the DyanmoDB Global Table)
To delete Cloudformation stacks, go to CloudFormation
in the specific region, select the stack name and click Delete
button. The template will delete along with all resources it created.