AWS::DataSync::LocationEFS Ec2Config - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::DataSync::LocationEFS Ec2Config

The subnet and security groups that Amazon DataSync uses to access your Amazon EFS file system.


To declare this entity in your Amazon CloudFormation template, use the following syntax:


{ "SecurityGroupArns" : [ String, ... ], "SubnetArn" : String }


SecurityGroupArns: - String SubnetArn: String



Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target.

Required: Yes

Type: List of String

Maximum: 5

Update requires: Replacement


Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer.

The subnet must be located:

  • In the same virtual private cloud (VPC) as the Amazon EFS file system.

  • In the same Availability Zone as at least one mount target for the Amazon EFS file system.


You don't need to specify a subnet that includes a file system mount target.

Required: Yes

Type: String

Maximum: 128

Pattern: ^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):ec2:[a-z\-0-9]*:[0-9]{12}:subnet/.*$

Update requires: Replacement