Amazon FSx for Windows File Server
Windows User Guide

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

Getting Started with Amazon FSx

Following, you can learn how to get started using Amazon FSx. This getting started exercise includes the following steps.

Step 1: Create Your File System

To create your Amazon FSx file system, you must create your Amazon Elastic Compute Cloud (Amazon EC2) instance and the AWS Directory Service directory. If you don't have that set up already, see Walkthrough 1: Prerequisites for Getting Started.

To create your first file system

  1. Open the Amazon FSx console at https://console.aws.amazon.com/fsx/.

  2. From the console dashboard, choose Create file system to start the file system creation wizard.

  3. Provide a name for your file system. You can use a maximum of 256 Unicode letters, white space, and numbers, plus the special characters + - = . _ : /

  4. Provide the storage capacity for your file system, in GiB. This value can be any whole number in the range of 300 to 65,536.

  5. Choose your throughput capacity. The Recommended throughput capacity is based off of your chosen storage capacity. You can change this level to more MB/s as needed at creation by manually choosing a throughput capacity from the box.

  6. Choose the Amazon VPC that you want to associate with your file system. For the purposes of this getting started exercise, choose the same Amazon VPC that you chose for your AWS Directory Service directory and your Amazon EC2 instance.

  7. Choose any value for Availability Zones and Subnet.

  8. For VPC security groups, the default security group for your default Amazon VPC is already added to your file system in the console. If you're not using the default security group, make sure that you add the following rules to the security group you're using for this getting started exercise:

    1. Inbound and outbound rules to allow the following ports:

      • TCP/UDP 445 (SMB)

      • TCP 135 (RPC)

      • TCP/UDP 1024-65535 (Ephemeral ports for RPC)

      From and to IP addresses or security group IDs associated with the following source and destination resources:

      • Client compute instances from which you want to access the file system.

      • Other file servers that you expect this file system to participate with in DFS Replication groups.

    2. Outbound rules to allow all traffic to the security group ID associated with the AWS Managed Microsoft AD directory to which you're joining your file system.

    Note

    In some cases, you might have modified the rules of your AWS Managed Microsoft AD's security group from the default settings. If so, make sure that this security group has the required inbound rules to allow traffic from your Amazon FSx file system. To learn more about the required inbound rules, see AWS Managed Microsoft AD Prerequisites in the AWS Directory Service Administration Guide.

  9. For Windows authentication, choose AWS Managed Microsoft Active Directory and enter the fully qualified domain name for your AWS Directory Service directory from the list.

  10. Keep Encryption set to off.

  11. Choose Next.

  12. Review the file system configuration on the Create file system page, and choose Create file system.

  13. After the file system has been created, choose the file system ID in the File Systems dashboard, choose Attach, and note the fully qualified domain name for your file system. You need it in a later step.

Step 2: Map Your File Share to an EC2 Instance Running Windows Server

You can now mount your Amazon FSx file system to your Microsoft Windows–based Amazon EC2 instance joined to your AWS Directory Service directory. The name of your file share is not the same as name of your file system.

To map a file share on an Amazon EC2 Windows instance using the GUI

  1. Before you can mount a file share on a Windows instance, you must launch the EC2 instance and connect it to an AWS Directory Service for Microsoft Active Directory. To perform this action, choose one of the following procedures from the AWS Directory Service Administration Guide:

  2. Connect to your instance. For more information, see Connecting to Your Windows Instance in the Amazon EC2 User Guide for Windows Instances.

  3. Once connected, open File Explorer.

  4. From the navigation pane, open the context (right-click) menu for Network and choose Map Network Drive.

  5. Choose a drive letter of your choice for Drive.

  6. Enter the fully qualified domain name (FQDN) name for your file share. You construct this name from the FQDN of your file system and the name of your Windows file share. An example is \\fs-012345678901234567.ad-domain.com\share for Folder.

  7. Choose whether the file share should Reconnect at sign-in and then choose Finish.

Step 3: Write Data to Your File Share

Now that you've mapped your file share to your instance, you can use your file share like any other directory in your Windows environment.

To write data to your file share

  1. Open the Notepad text editor.

  2. Write some content in the text editor. For example: Hello, World!

  3. Save the file to your file share's drive letter.

  4. Using File Explorer, navigate to your file share and find the text file that you just saved.

Step 4: Back Up Your File System

Now that you've had a chance to use your Amazon FSx file system and its file shares, you can back it up. By default, daily backups are created automatically during your file system's 30-minute backup window. However you can create a user-initiated backup at any time. Backups have additional costs associated with them. For more information on backup pricing, see Pricing.

To create a backup of your file system from the console

  1. Open the Amazon FSx console at https://console.aws.amazon.com/fsx/.

  2. From the console dashboard, choose the name of the file system you created for this exercise.

  3. From the Overview tab for your file system, choose Create backup.

  4. In the Create backup dialog box that opens, provide a name for your backup. This name can contain a maximum of 256 Unicode letters and include white space, numbers, and the following special characters: + - = . _ : /

  5. Choose Create backup.

  6. To view all your backups in a list, so you can restore your file system or delete the backup, choose Backups.

When you create a new backup, its status is set to CREATING while it is being created. This can take a few minutes. When the backup is available for use, its status changes to AVAILABLE.

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

  1. On the Amazon EC2 console, terminate your instance. For more information, see Terminate Your Instance in the Amazon EC2 User Guide for Windows Instances.

  2. On the Amazon FSx console, delete your file system. All automatic backups are deleted automatically. However, you still need to delete the manually created backups. The following steps outline this process:

    1. Open the Amazon FSx console at https://console.aws.amazon.com/fsx/.

    2. From the console dashboard, choose the name of the file system you created for this exercise.

    3. For Actions, choose Delete file system.

    4. In the Delete file system dialog box that opens, decide whether you want to create a final backup. If you do, provide a name for the final backup. Any automatically created backups are also deleted.

      Important

      New file systems can be created from backups. We recommend that you create a final backup as a best practice. If you find you don't need it after a certain period of time, you can delete this and other manually created backups.

    5. Enter the ID of the file system that you want to delete in the File system ID box.

    6. Choose Delete file system.

    7. The file system is now being deleted, and its status in the dashboard changes to DELETING. When the file system has been deleted, it no longer appears in the dashboard.

    8. Now you can delete any manually created backups for your file system. From the right-side navigation, choose Backups.

    9. From the dashboard, choose any backups that have the same File system ID as the file system that you deleted, and choose Delete backup.

    10. The Delete backups dialog box opens. Leave the check box checked for the ID of the backup you selected, and choose Delete backups.

    Your Amazon FSx file system and related automatic backups are now deleted.

  3. If you created an AWS Directory Service directory for this exercise in Walkthrough 1: Prerequisites for Getting Started, you can delete it now. For more information, see Delete Your Directory in the AWS Directory Service Administration Guide.