Clean up resources
This page shows you how to remove the resources created during this tutorial.
Delete the CloudFormation stack
The CloudFormation stack created the ECS cluster, Fargate task, IAM roles, and CloudWatch log group. Deleting the stack removes all of these resources.
-
Delete the stack:
Terminal window aws cloudformation delete-stack --stack-name alloy-monitoring -
Wait for deletion to complete (typically 2-3 minutes):
Terminal window aws cloudformation wait stack-delete-complete --stack-name alloy-monitoring -
Verify the stack is deleted:
Terminal window aws cloudformation describe-stacks --stack-name alloy-monitoringYou should see an error: “Stack with id alloy-monitoring does not exist”.
Remove Grafana Cloud resources (optional)
If you no longer need the Grafana Cloud dashboards:
-
Open your Grafana Cloud instance at
https://YOURNAME.grafana.net. -
Navigate to Dashboards.
-
Select the Namespace View dashboard.
-
Click Dashboard settings (gear icon) > Delete dashboard.
Your Grafana Cloud free tier account can remain active at no cost. You only need to delete it if you want to remove it entirely.
Stop or terminate EC2 instances (if applicable)
If you created an EC2 instance during the Aerospike Cloud quickstart:
-
Open the EC2 Console.
-
Select your instance.
-
Choose Instance state > Stop instance to pause costs while preserving the instance, or Terminate instance to delete it permanently.
Delete the Aerospike Cloud cluster (optional)
If you created a cluster specifically for this tutorial and no longer need it:
-
Open the Aerospike Cloud Console.
-
In the sidebar, click Clusters.
-
Find your cluster and click the trash icon on the right side of the cluster row.
-
In the Decommission [cluster-name]? dialog, read the warning about permanent deletion.
-
Type the cluster name in uppercase in the confirmation field.
-
Click Permanently decommission.
Decommissioning permanently deletes the cluster and all associated resources. This action is irreversible.