Menu
Amazon Elastic File System
User Guide

Creating Mount Targets in Another VPC

You can use an Amazon EFS file system in one VPC at a time. That is, you create mount targets in a VPC for your file system, and use those mount targets to provide access to the file system from EC2 instances in that VPC. To access the file system from EC2 instances in another VPC, you must first delete the mount targets from the current VPC and then create new mount targets in another VPC.

Using the Console

  1. In the Amazon EFS console, first select the file system, choose Actions, and then choose Manage File System Access.

    The console displays the Manage File System Access page with a list of mount targets you created for the file system in a VPC. The following illustration shows a file system that has three mount targets, one in each Availability Zones.

  2. To change the VPC, select another VPC from the VPC list.

    The console clears all of the mount target information and lists only the Availability Zone.

  3. Create mount targets in one or more Availability Zones as follows:

    1. If the Availability Zone has multiple subnets, select a subnet from the Subnet list.

    2. Amazon EFS automatically selects an available IP address, or you can provide another IP address explicitly.

    3. Choose the security groups that you want to associate.

      For information about security groups, see Amazon EC2 Security Groups in the Amazon EC2 User Guide for Linux Instances.

  4. Choose Save.

    The console first deletes the mount targets from the previous VPC and then creates new mount targets in the new VPC that you selected.

Using the CLI

To use a file system in another VPC, you must first delete any mount targets you previously created in a VPC and then create new mount targets in another VPC. For example AWS CLI commands, see Creating or Deleting Mount Targets in a VPC.