Step 5: Clean up resources
After you have finished this exercise, you should follow these steps to clean up your resources and protect your AWS account.
To clean up resources
-
If you want to do a final export, run the following command.
nohup find /mnt/fsx -type f -print0 | xargs -0 -n 1 sudo lfs hsm_archive &
-
On the Amazon EC2 console, terminate your instance. For more information, see Terminate Your Instance in the Amazon EC2 User Guide for Linux Instances.
-
On the Amazon FSx for Lustre console, delete your file system with the following procedure:
-
In the navigation pane, choose File systems.
-
Choose the file system that you want to delete from list of file systems on the dashboard.
-
For Actions, choose Delete file system.
-
In the dialog box that appears, choose if you want to take a final backup of the file system. Then provide the file system ID to confirm the deletion. Choose Delete file system.
-
-
If you created an Amazon S3 bucket for this exercise, and if you don't want to preserve the data you exported, you can now delete it. For more information, see Deleting a bucket in the Amazon Simple Storage Service User Guide.