AWS::DataSync::LocationFSxLustre - 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.


The AWS::DataSync::LocationFSxLustre resource specifies an endpoint for an Amazon FSx for Lustre file system.


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


{ "Type" : "AWS::DataSync::LocationFSxLustre", "Properties" : { "FsxFilesystemArn" : String, "SecurityGroupArns" : [ String, ... ], "Subdirectory" : String, "Tags" : [ Tag, ... ] } }


Type: AWS::DataSync::LocationFSxLustre Properties: FsxFilesystemArn: String SecurityGroupArns: - String Subdirectory: String Tags: - Tag



The Amazon Resource Name (ARN) for the FSx for Lustre file system.

Required: Yes

Type: String

Maximum: 128

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

Update requires: Replacement


The ARNs of the security groups that are used to configure the FSx for Lustre file system.

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

Length constraints: Maximum length of 128.

Required: Yes

Type: List of String

Maximum: 5

Update requires: Replacement


A subdirectory in the location's path. This subdirectory in the FSx for Lustre file system is used to read data from the FSx for Lustre source location or write data to the FSx for Lustre destination.

Required: No

Type: String

Maximum: 4096

Pattern: ^[a-zA-Z0-9_\-\+\./\(\)\$\p{Zs}]+$

Update requires: Replacement


The key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.

Required: No

Type: List of Tag

Maximum: 50

Update requires: No interruption

Return values


When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the location resource ARN. For example:


For more information about using the Ref function, see Ref.


The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.


The ARN of the specified FSx for Lustre file system location.


The URI of the specified FSx for Lustre file system location.


Specify an Amazon FSx for Lustre location for DataSync

The following examples specify an FSx for Lustre location for DataSync, including the subdirectory /MySubdirectory.


{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Specifies an FSx for Lustre location for DataSync", "Resources": { "LocationFSxLustre": { "Type": "AWS::DataSync::LocationFSxLustre", "Properties": { "FsxFilesystemArn": "arn:aws:fsx:us-east-2:111222333444:file-system/fs-12345fsx", "SecurityGroupArns": [ "arn:aws:ec2:us-east-2:11122233344:security-group/sg-12345678901212345" ], "Subdirectory": "/MySubdirectory" } } } }


AWSTemplateFormatVersion: 2010-09-09 Description: Specifies an FSx for Lustre location for DataSync Resources: LocationFSxLustre: Type: AWS::DataSync::LocationFSxLustre Properties: FsxFilesystemArn: arn:aws:fsx:us-east-2:111222333444:file-system/fs-12345fsx SecurityGroupArns: - arn:aws:ec2:us-east-2:11122233344:security-group/sg-12345678901212345 Subdirectory: /MySubdirectory