Deploy a LAMP Web App on Amazon Lightsail
Module 2: Clean Up Resources
Introduction
Implementation
Module 2: Clean Up Resources
In this module, you will clean up the resources that you deployed in previous modules
Delete the cloud-based infrastructure
Amazon Lightsail makes it easy to delete your infrastructure with just one command.
1. Delete the instance
Open your terminal and type the following command:
aws lightsail delete-instance --instance-name LightsailLampExample
2. Delete the key pair
To delete your SSH key pair, use this command:
aws lightsail delete-key-pair --key-pair-name LightsailGuide
3. Verify deletion
To verify all resources have been deleted, enter the following command:
aws lightsail get-instances # the command should output the following{ "instances": []}
Conclusion
Congratulations! You have finished the
Deploy a LAMP Web Application on Amazon Lightsail tutorial. Continue your journey with AWS by following the
Next steps section.
Did you find what you were looking for today?
Let us know so we can improve the quality of the content on our pages