Skip to content

aws.efs.describe_mount_targets

Example SQL Queries

SELECT * FROM
aws.efs.describe_mount_targets;

Description

Returns the descriptions of all the current mount targets, or a specific mount target, for a file system. When requesting all of the current mount targets, the order of mount targets returned in the response is unspecified.

This operation requires permissions for the elasticfilesystem:DescribeMountTargets action, on either the file system ID that you specify in FileSystemId, or on the file system of the mount target that you specify in MountTargetId.

Table Definition

Column NameColumn Data Type
access_point_id Input Column

(Optional) The ID of the access point whose mount targets that you want to list. It must be included in your request if a FileSystemId or MountTargetId is not included in your request. Accepts either an access point ID or ARN as input.

VARCHAR
file_system_id Input Column

(Optional) ID of the file system whose mount targets you want to list (String). It must be included in your request if an AccessPointId or MountTargetId is not included. Accepts either a file system ID or ARN as input.

VARCHAR
mount_target_id Input Column

(Optional) ID of the mount target that you want to have described (String). It must be included in your request if FileSystemId is not included. Accepts either a mount target ID or ARN as input.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

marker

If the request included the Marker, the response returns that value in this field.

VARCHAR
mount_targets

Returns the file system's mount targets as an array of MountTargetDescription objects.

STRUCT(
"owner_id" VARCHAR,
"mount_target_id" VARCHAR,
"file_system_id" VARCHAR,
"subnet_id" VARCHAR,
"life_cycle_state" VARCHAR,
"ip_address" VARCHAR,
"network_interface_id" VARCHAR,
"availability_zone_id" VARCHAR,
"availability_zone_name" VARCHAR,
"vpc_id" VARCHAR
)[]
Show child fields
mount_targets[]
Show child fields
mount_targets[].availability_zone_id

The unique and consistent identifier of the Availability Zone that the mount target resides in. For example, use1-az1 is an AZ ID for the us-east-1 Region and it has the same location in every Amazon Web Services account.

mount_targets[].availability_zone_name

The name of the Availability Zone in which the mount target is located. Availability Zones are independently mapped to names for each Amazon Web Services account. For example, the Availability Zone us-east-1a for your Amazon Web Services account might not be the same location as us-east-1a for another Amazon Web Services account.

mount_targets[].file_system_id

The ID of the file system for which the mount target is intended.

mount_targets[].ip_address

Address at which the file system can be mounted by using the mount target.

mount_targets[].life_cycle_state

Lifecycle state of the mount target.

mount_targets[].mount_target_id

System-assigned mount target ID.

mount_targets[].network_interface_id

The ID of the network interface that Amazon EFS created when it created the mount target.

mount_targets[].owner_id

Amazon Web Services account ID that owns the resource.

mount_targets[].subnet_id

The ID of the mount target's subnet.

mount_targets[].vpc_id

The virtual private cloud (VPC) ID that the mount target is configured in.