Step 8 (Optional): Clean Up
Important
The AWS OpsWorks Stacks service reached end of life on May 26, 2024 and has been disabled for both new and existing customers.
We strongly recommend customers migrate their workloads to other solutions as soon as possible. If you have questions about migration, reach out to the AWS Support Team on AWS re:Post
To prevent incurring additional charges to your AWS account, you can delete the AWS
resources that were used for this walkthrough. These AWS resources include the AWS OpsWorks Stacks stack
and the stack's components. (For more information, see AWS OpsWorks Pricing
Content stored in the resources that you created for this walkthrough can contain personally-identifying information. If you no longer want this information to be stored by AWS, follow steps in this topic.
To delete the app from the stack
-
In the AWS OpsWorks Stacks console, in the service navigation pane, choose Apps. The Apps page is displayed.
-
For MyLinuxDemoApp, for Actions, choose delete. When the confirmation message is displayed, choose Delete. AWS OpsWorks Stacks deletes the app.
To delete the instance for the stack
-
In the service navigation pane, choose Instances. The Instances page is displayed.
-
For MyLinuxDemoLayer, for demo1, for Actions, choose stop. When you see the confirmation message, choose Stop. The following happens.
-
Status changes from online to stopping, and eventually to stopped.
-
online changes from 1 to 0.
-
shutting down changes from 0 to 1, and eventually back to 0.
-
stopped eventually changes from 0 to 1.
This process can take a few minutes. When AWS OpsWorks Stacks is finished, the following results are shown.
-
-
For Actions, choose delete. When you see the confirmation message, choose Delete. AWS OpsWorks Stacks deletes the instance and displays the No instances message.
To delete the stack
-
In the service navigation pane, choose Stack. The MyLinuxDemoStack page is displayed.
-
Choose Delete Stack. When you see the confirmation message, choose Delete. AWS OpsWorks Stacks deletes the stack and displays the OpsWorks Dashboard page.
Optionally, you can delete the user and Amazon EC2 key pair that you used for this walkthrough, if you don't want to reuse them for access to other AWS services and EC2 instances. For instructions, see Deleting an IAM user and Amazon EC2 key pairs and Linux instances.
You have now completed this walkthrough. For more information, see Next Steps.