Skip to main content

location_fsx_lustres

Creates, updates, deletes, gets or lists a location_fsx_lustres resource.

Overview​

Namelocation_fsx_lustres
TypeResource
Idaws.datasync.location_fsx_lustres

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The time that the FSx for Lustre location was created.
location_arnstringThe Amazon Resource Name (ARN) of the FSx for Lustre location that was described. (pattern: <code>^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):datasync:[a-z-0-9]+:[0-9]{12}:location/loc-[0-9a-z]{17}$</code>)
location_uristringThe URI of the FSx for Lustre location that was described. (pattern: <code>^(efs|nfs|s3|smb|hdfs|fsx[a-z0-9-]+):​//[a-zA-Z0-9.:/-]+$</code>)
security_group_arnsarrayThe Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Lustre file system.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_location_fsx_lustreselectregionProvides details about how an DataSync transfer location for an Amazon FSx for Lustre file system is configured.
create_location_fsx_lustreinsertregion, FsxFilesystemArn, SecurityGroupArnsCreates a transfer location for an Amazon FSx for Lustre file system. DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses FSx for Lustre file systems.
update_location_fsx_lustreupdateregion, LocationArnModifies the following configuration parameters of the Amazon FSx for Lustre transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for Lustre.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples​

Provides details about how an DataSync transfer location for an Amazon FSx for Lustre file system is configured.

SELECT
creation_time,
location_arn,
location_uri,
security_group_arns
FROM aws.datasync.location_fsx_lustres
WHERE region = '{{ region }}' -- required
;

INSERT examples​

Creates a transfer location for an Amazon FSx for Lustre file system. DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses FSx for Lustre file systems.

INSERT INTO aws.datasync.location_fsx_lustres (
FsxFilesystemArn,
SecurityGroupArns,
Subdirectory,
Tags,
region
)
SELECT
'{{ FsxFilesystemArn }}' /* required */,
'{{ SecurityGroupArns }}' /* required */,
'{{ Subdirectory }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
location_arn
;

UPDATE examples​

Modifies the following configuration parameters of the Amazon FSx for Lustre transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for Lustre.

UPDATE aws.datasync.location_fsx_lustres
SET
LocationArn = '{{ LocationArn }}',
Subdirectory = '{{ Subdirectory }}'
WHERE
region = '{{ region }}' --required
AND LocationArn = '{{ LocationArn }}' --required;