Skip to main content

mount_targets

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

Overview

Namemount_targets
TypeResource
Idaws.s3files.mount_targets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
availability_zone_idstringThe Availability Zone ID where the mount target is located.
file_system_idstringThe ID of the file system. (pattern: <code>(arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system/fs-[0-9a-f]{17,40}|fs-[0-9a-f]{17,40})</code>)
ipv_4_addressstringThe IPv4 address of the mount target. (pattern: <code>[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}</code>)
ipv_6_addressstringThe IPv6 address of the mount target.
mount_target_idstringThe ID of the mount target. (pattern: <code>fsmt-[0-9a-f]{17,40}</code>)
network_interface_idstringThe ID of the network interface associated with the mount target.
owner_idstringThe Amazon Web Services account ID of the mount target owner. (pattern: <code>(\d{12})|(\d{4}-{4}-\d{4})</code>)
security_groupsarrayThe security groups associated with the mount target.
statusstringThe current status of the mount target. (available, creating, deleting, deleted, error, updating)
status_messagestringAdditional information about the mount target status.
subnet_idstringThe ID of the subnet where the mount target is located. (pattern: <code>subnet-[0-9a-f]{8,40}</code>)
vpc_idstringThe ID of the VPC where the mount target is located.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_mount_targetselectmount_target_id, regionReturns detailed resource information for the specified mount target including network configuration.
list_mount_targetsselectregionfileSystemId, accessPointId, maxResults, nextTokenReturns resource information for all mount targets with optional filtering by file system, access point, and VPC.
create_mount_targetinsertregion, fileSystemId, subnetIdCreates a mount target resource as an endpoint for mounting the S3 File System from compute resources in a specific Availability Zone and VPC. Mount targets provide network access to the file system.
update_mount_targetupdatemount_target_id, region, securityGroupsUpdates the mount target resource, specifically security group configurations.
delete_mount_targetdeletemount_target_id, regionDeletes the specified mount target. This operation is irreversible.

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
mount_target_idstringThe ID of the mount target to delete.
regionstringAWS region (default: us-east-1)
accessPointIdstringOptional filter to list only mount targets associated with the specified access point ID or Amazon Resource Name (ARN).
fileSystemIdstringOptional filter to list only mount targets associated with the specified S3 File System ID or Amazon Resource Name (ARN). If provided, only mount targets for this file system will be returned in the response.
maxResultsintegerThe maximum number of mount targets to return in a single response.
nextTokenstringA pagination token returned from a previous call to continue listing mount targets.

SELECT examples

Returns detailed resource information for the specified mount target including network configuration.

SELECT
availability_zone_id,
file_system_id,
ipv_4_address,
ipv_6_address,
mount_target_id,
network_interface_id,
owner_id,
security_groups,
status,
status_message,
subnet_id,
vpc_id
FROM aws.s3files.mount_targets
WHERE mount_target_id = '{{ mount_target_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a mount target resource as an endpoint for mounting the S3 File System from compute resources in a specific Availability Zone and VPC. Mount targets provide network access to the file system.

INSERT INTO aws.s3files.mount_targets (
fileSystemId,
subnetId,
ipv4Address,
ipv6Address,
ipAddressType,
securityGroups,
region
)
SELECT
'{{ fileSystemId }}' /* required */,
'{{ subnetId }}' /* required */,
'{{ ipv4Address }}',
'{{ ipv6Address }}',
'{{ ipAddressType }}',
'{{ securityGroups }}',
'{{ region }}'
RETURNING
availability_zone_id,
file_system_id,
ipv_4_address,
ipv_6_address,
mount_target_id,
network_interface_id,
owner_id,
security_groups,
status,
status_message,
subnet_id,
vpc_id
;

UPDATE examples

Updates the mount target resource, specifically security group configurations.

UPDATE aws.s3files.mount_targets
SET
securityGroups = '{{ securityGroups }}'
WHERE
mount_target_id = '{{ mount_target_id }}' --required
AND region = '{{ region }}' --required
AND securityGroups = '{{ securityGroups }}' --required
RETURNING
availability_zone_id,
file_system_id,
ipv_4_address,
ipv_6_address,
mount_target_id,
network_interface_id,
owner_id,
security_groups,
status,
status_message,
subnet_id,
vpc_id;

DELETE examples

Deletes the specified mount target. This operation is irreversible.

DELETE FROM aws.s3files.mount_targets
WHERE mount_target_id = '{{ mount_target_id }}' --required
AND region = '{{ region }}' --required
;