Deleting a Stack in AWS OpsWorks
Lab Steps
Introduction
In this lab step, you will delete the AWS OpsWorks stack you created. In AWS OpsWorks, only empty stacks can be deleted, so you must first delete all instances, applications, and layers in the stack.
Â
Instructions
1. Return to the AWS OpsWorks console.
Â
2. Click fizzbuzzapp:
Â
3. Click Apps in the left-hand menu:
Â
4. In the fizzbuzz column, click delete.
A message will appear to confirm the deletion.
Â
5. Click Delete:
Â
6. Click Instances in the left-hand menu:
Â
7. Click Stop All Instances:
You can also stop instances individually by clicking stop under the Actions column of that instance.
Â
8. Click Stop in the confirmation window:
It will take up to 3 minutes to stop your instance. Your php-app1 instance will have a Status of stopped.
Â
9. After the instance has stopped, click delete in the Actions column:
Â
10. Click Delete in the confirmation window:
Â
11. Click Layers in the left-hand menu:
Â
12. In the PHP App Server layer, click Delete:
Â
13. Click Delete in the confirmation window.
Â
14. Click Stack in the left-hand menu:
Â
15. Click Delete Stack:
Â
16. Click Delete in the confirmation window:
Â
Summary
In this lab step, you successfully cleaned up your AWS OpsWorks stack components and deleted your stack.