Skip to main content

location_efs

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

Overview

Namelocation_efs
TypeResource
Idaws.datasync.location_efs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
access_point_arnstringThe ARN of the access point that DataSync uses to access the Amazon EFS file system. For more information, see Accessing restricted file systems. (pattern: <code>^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):elasticfilesystem:[a-z-0-9]+:[0-9]{12}:access-point/fsap-[0-9a-f]{8,40}$</code>)
creation_timestring (date-time)The time that the location was created.
ec_2_configobjectThe subnet and security groups that DataSync uses to connect to one of your Amazon EFS file system's mount targets.
file_system_access_role_arnstringThe Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system. For more information, see Creating a DataSync IAM role for file system access. (pattern: <code>^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):iam::[0-9]{12}:role/.*$</code>)
in_transit_encryptionstringIndicates whether DataSync uses Transport Layer Security (TLS) encryption when transferring data to or from the Amazon EFS file system. (NONE, TLS1_2)
location_arnstringThe ARN of the Amazon EFS file system location. (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 URL of the Amazon EFS file system location. (pattern: <code>^(efs|nfs|s3|smb|hdfs|fsx[a-z0-9-]+):​//[a-zA-Z0-9.:/-]+$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_location_efsselectregionProvides details about how an DataSync transfer location for an Amazon EFS file system is configured.
create_location_efsinsertregion, EfsFilesystemArn, Ec2ConfigCreates a transfer location for an Amazon EFS 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 Amazon EFS file systems.
update_location_efsupdateregion, LocationArnModifies the following configuration parameters of the Amazon EFS transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with Amazon EFS.

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 EFS file system is configured.

SELECT
access_point_arn,
creation_time,
ec_2_config,
file_system_access_role_arn,
in_transit_encryption,
location_arn,
location_uri
FROM aws.datasync.location_efs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a transfer location for an Amazon EFS 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 Amazon EFS file systems.

INSERT INTO aws.datasync.location_efs (
Subdirectory,
EfsFilesystemArn,
Ec2Config,
Tags,
AccessPointArn,
FileSystemAccessRoleArn,
InTransitEncryption,
region
)
SELECT
'{{ Subdirectory }}',
'{{ EfsFilesystemArn }}' /* required */,
'{{ Ec2Config }}' /* required */,
'{{ Tags }}',
'{{ AccessPointArn }}',
'{{ FileSystemAccessRoleArn }}',
'{{ InTransitEncryption }}',
'{{ region }}'
RETURNING
location_arn
;

UPDATE examples

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

UPDATE aws.datasync.location_efs
SET
LocationArn = '{{ LocationArn }}',
Subdirectory = '{{ Subdirectory }}',
AccessPointArn = '{{ AccessPointArn }}',
FileSystemAccessRoleArn = '{{ FileSystemAccessRoleArn }}',
InTransitEncryption = '{{ InTransitEncryption }}'
WHERE
region = '{{ region }}' --required
AND LocationArn = '{{ LocationArn }}' --required;