Following are the steps to cleanup CDK stack
-
Access the AWS Management Console, select Services. at the top of the screen, and select the S3 service. Or, you can type S3 in the search box to the right of Services, then select S3 from the list.
-
Check to make sure you're still in the correct region for your labs, by checking the region name at the top right of the AWS Console, such as the North Virginia region, us-east-1.
-
Select the S3 Bucket you created for example: cdk-xxxx
-
Click Empty.
- To confirm delete, enter 'permanently delete’, and click empty to delete all the objects in the S3 Bucket.
-
Access the AWS Management Console, select Services. at the top of the screen, and select the CloudFormation service. Or, you can type CloudFormation in the search box to the right of Services, then select CloudFormation from the list that comes up.
-
Select the stack name example , and click delete.
- Click Delete to delete stack permanently.
-
Kinesis Cleanup If you have used AWS Kinesis and Kinesis Data Generator to stream IoT metrics from Amazon Monitron to Amazon S3, Following are the steps to cleanup
-
Access the AWS Management Console, select Services at the top of the screen, and select the S3 service. Or, you can type S3 in the search box to the right of Services, then select S3 from the list.
-
Check to make sure you're still in the correct region for your labs, by checking the region name at the top right of the AWS Console, such as the North Virginia region, us-east-1.
-
Select the S3 Bucket that was created for storing Kinesis streaming data
-
Click Empty.
- To confirm delete, enter permanently delete, and click Empty to delete all the objects in the S3 Bucket.
-
Access the AWS Management Console, select Services. at the top of the screen, and select the CloudFormation service. Or, you can type CloudFormation in the search box to the right of Services, then select CloudFormation from the list that comes up.
-
Select the stack name you created for example 'monitron-kinesis-live-data-export', and click Delete.
8.Click Delete to delete stack permanently.