If you plan to keep things running so you can examine the workshop a bit more please remember to do the cleanup when you are done. Depending on what you provisioned there maybe a few things to cleanup.
Run this command to remove the AWS key pair, the AWS resources created by the CloudFormation template and the Dynatrace configuration:
cd ~/aws-modernization-dt-orders-setup/provision-scripts
./cleanup-workshop.sh
The start of the script output will look like this:
===================================================================
About to Delete Workshop resources
===================================================================
Proceed? (y/n) : y
==========================================
Deleting workshop resources
Starting: Fri 07 May 2021 04:35:46 AM UTC
==========================================
...
...
You can monitor the CloudFormation stack delete process in the AWS console
Eventually when it completes - plan for 5-10 minutes - it will look like this:
=============================================
Deleting workshop resources COMPLETE
End: Fri 07 May 2021 04:40:40 AM UTC
=============================================
If you created a Kubernetes cluster, then must delete the clusters you have spun up by running the eksctl
command that will delete the CloudFormation stack made earlier.
If you adjusted the name of the cluster, then you need to adjust the argument value for --name dynatrace-workshop
. To verify the name, review it within the AWS console
eksctl delete cluster --name dynatrace-workshop --region us-west-2
Plan for 20-30 minutes for this to complete.
You can monitor the CloudFormation stack delete process in the AWS console
If you created a IAM policy for the AWS monitor integration lab, then follow these steps.
1 . Navigate to IAM policies and delete the policy named dynatrace_monitoring_policy
that you created earlier.
2 . Navigate to IAM role and delete the role named dynatrace_monitoring_role
that you created earlier.
3 . Within Dynatrace, navigate to Settings -> CLoud and Virtualization -> AWS
and remove the dynatrace-modernize-workshop
connection created earlier.
You have a fully feature enabled 15 day Dynatrace trial, so keep using it to monitor and manage your infrastructure and applications!!
Here are resources to get your started: