Step 4: Clean up resources and protect your AWS account - Amazon Elastic File System

Step 4: Clean up resources and protect your AWS account

This guide includes walkthroughs that you can use to further explore Amazon EFS. Before you perform this clean-up step, you can use the resources you've created and connected to in this Getting Started exercise in those walkthroughs. For more information, see Walkthroughs. After you finish the walkthroughs, or if you don't want to explore the walkthroughs, take the following steps to clean up your resources and protect your AWS account.

To clean up resources and protect your account
  1. Connect to your Amazon EC2 instance.

  2. Unmount the EFS file system with the following command.

    $ sudo umount efs
  3. Open the EFS console at https://console.aws.amazon.com/efs/.

  4. Choose the EFS file system that you want to delete from the list of file systems.

  5. For Actions, choose Delete file system.

  6. In the Permanently delete file system dialog box, type the file system ID for the EFS file system that you want to delete, and then choose Delete File System.

  7. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  8. Choose the Amazon EC2 instance that you want to terminate from the list of instances.

  9. For Actions, choose Instance State and then choose Terminate.

  10. In Terminate Instances, choose Yes, Terminate to terminate the instance that you created for this Getting Started exercise.

  11. In the navigation pane, choose Security Groups.

  12. Select the name of the security group that you created for this Getting Started exercise in Step 2: Create your EC2 resources and launch your EC2 instance as a part of the Amazon EC2 instance Launch Wizard.

    Warning

    Don't delete the default security group for your VPC.

  13. For Actions, choose Delete Security Group.

  14. In Delete Security Group, choose Yes, Delete to delete the security group you created for this Getting Started exercise.