Table: aws_efs_mount_target - Query AWS EFS Mount Targets using SQL
The AWS EFS Mount Target is a component of Amazon Elastic File System (EFS) that provides a network interface for a file system to connect to. It enables you to mount an Amazon EFS file system in your Amazon EC2 instance. This network interface allows the file system to connect to the network of a VPC.
Table Usage Guide
The aws_efs_mount_target
table in Steampipe provides you with information about mount targets within AWS Elastic File System (EFS). This table allows you, as a DevOps engineer, to query mount target-specific details, including the file system ID, mount target ID, subnet ID, and security groups. You can utilize this table to gather insights on mount targets, such as their availability, network interface, and life cycle state. The schema outlines the various attributes of the EFS mount target for you, including the IP address, network interface ID, owner ID, and associated tags.
Examples
Basic info
Explore the status and location of your Amazon EFS mount targets. This query is useful for understanding the availability and lifecycle state of your mount targets, which can help in optimizing resource usage and troubleshooting.
select mount_target_id, file_system_id, life_cycle_state, availability_zone_id, availability_zone_namefrom aws_efs_mount_target;
select mount_target_id, file_system_id, life_cycle_state, availability_zone_id, availability_zone_namefrom aws_efs_mount_target;
Get network details for each mount target
Explore the network configuration of each mount target to understand its association with different network interfaces, subnets, and virtual private clouds. This can help in assessing network-related issues and ensuring optimal configuration for enhanced performance.
select mount_target_id, network_interface_id, subnet_id, vpc_idfrom aws_efs_mount_target;
select mount_target_id, network_interface_id, subnet_id, vpc_idfrom aws_efs_mount_target;
Schema for aws_efs_mount_target
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
account_id | text | =, !=, ~~, ~~*, !~~, !~~* | The AWS Account ID in which the resource is located. |
akas | jsonb | Array of globally unique identifier strings (also known as) for the resource. | |
availability_zone_id | text | The unique and consistent identifier of the Availability Zone that the mount target resides in. | |
availability_zone_name | text | The name of the Availability Zone in which the mount target is located. | |
file_system_id | text | The ID of the file system for which the mount target is intended. | |
ip_address | inet | Address at which the file system can be mounted by using the mount target. | |
life_cycle_state | text | Lifecycle state of the mount target. | |
mount_target_id | text | = | The ID of the mount target. |
network_interface_id | text | The ID of the network interface that Amazon EFS created when it created the mount target. | |
owner_id | text | AWS account ID that owns the resource. | |
partition | text | The AWS partition in which the resource is located (aws, aws-cn, or aws-us-gov). | |
region | text | The AWS Region in which the resource is located. | |
security_groups | jsonb | Specifies the security groups currently in effect for a mount target. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
subnet_id | text | The ID of the mount target's subnet. | |
title | text | Title of the resource. | |
vpc_id | text | The virtual private cloud (VPC) ID that the mount target is configured in. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- aws
You can pass the configuration to the command with the --config
argument:
steampipe_export_aws --config '<your_config>' aws_efs_mount_target