Deploy a LAMP Web App on Amazon Lightsail

GETTING STARTED GUIDE

Module 2: Clean Up Resources

In this module, you will clean up the resources that you deployed in previous modules

Introduction

If you followed the steps of this guide to experiment with Lightsail, and not to deploy a production-ready service, it is important to delete all cloud-based resources that you created, to avoid incurring charges on your AWS Account.

What You Will Learn

  • Clean up all resources used by an Amazon Lightsail deployment.

 Time to Complete

< 2 minutes

 Module Prereqs

  • AWS Account with administrator-level access**
  • Recommended browser: The latest version of Chrome or Firefox

[**]Accounts created within the past 24 hours might not yet have access to the services required for this tutorial.

Implementation

Delete the Cloud-Based Infrastructure

Amazon Lightsail makes it easy to delete your infrastructure with just one command. 

Open your terminal and type the following command:

aws lightsail delete-instance --instance-name LightsailLampExample

Verify no Resources Are Left Behind

To verify all resources have been deleted, open a terminal and type the following command:

aws lightsail get-instances 

# the command should outputs the following
{
    "instances": []
}

Conclusion

Congratulations! You have finished the Deploy a LAMP Web Application on Amazon Lightsail getting started guide. Continue your journey with AWS by following the next steps section.

Let us know how we did.

Thank you for your feedback
We're glad this page helped you. Would you like to share additional details to help us continue to improve?
Close
Thank you for your feedback
We're sorry this page didn't help you. Would you like to share additional details to help us continue to improve?
Close