Skip to main content

Amazon EFS ExecModule

Overview​

AwsEfsModule reads Amazon Elastic File System (EFS) inventory through the AWS control plane. Use it to review which file systems exist in a region, check their reported encryption and lifecycle state, or find which Availability Zones, VPC, and subnets contain a file system's mount targets.

Each execution makes one bounded lookup. A deployment workflow can compare the returned targets with an expected set of Availability Zones. The result describes AWS resource placement and state. Use a separate check from the workload network to establish NFS reachability.

Usage​

  1. Create and verify an Amazon EFS connection in the Integration Account Console. Confirm its status is READY.
  2. Add Amazon EFS to a Workflow Studio task and choose that connection under General > Connection.
  3. Set the AWS region. Choose list_file_systems for an inventory page or an exact file system lookup. Choose list_mount_targets with a known fileSystemId to inspect target placement.
  4. Check status before using the returned items. If hasMore is true, collect the remaining pages before evaluating inventory-wide or placement rules.

Inputs​

InputTypeRequiredDefaultPurpose
operationstringNolist_file_systemsSelect a file system lookup or a mount target list.
regionstringYes—AWS region that contains the resources, in the commercial AWS or AWS GovCloud partition.
fileSystemIdstringFor mount targets—EFS file system ID such as fs-0123456789abcdef0. On list_file_systems, it limits the result to the exact file system.
limitintegerNo25 for file system inventoryMaximum file systems per inventory page, from 1 through 100. Mount target page size is determined by AWS.
nextTokenstringNo—Opaque continuation token from the previous list page. Omit it for the first page and for an exact file system lookup.

Outputs​

OutputMeaning
status / operationLookup outcome and the selected operation, when recognized.
items / countResource summaries and the number returned in this result.
hasMore / nextTokenWhether another page is available and its token when present.
requestIdAWS request reference, when available.
errorRedacted code, message, retryability, and AWS HTTP status when available.

File system summaries include fileSystemId, lifecycleState, encrypted, and numberOfMountTargets. Mount target summaries include mountTargetId, fileSystemId, lifecycleState, and the available placement fields vpcId, subnetId, availabilityZoneId, and availabilityZoneName. The module omits mount target IP addresses and the full AWS response.

IntegrationAccount Requirements​

Use an Amazon EFS connection with account name AWS. Store the access key ID in the protected API key field and the secret access key in the protected password field. ValkyrAI resolves the selected connection and uses AWS Signature Version 4 for requests.

Grant elasticfilesystem:DescribeFileSystems for file system inventory or exact lookups and elasticfilesystem:DescribeMountTargets for target inventory. Use only the actions the workflow needs. For target lookups limited to known file systems, scope the mount target permission to those file system ARNs. Amazon EFS IAM actions and resources

Configuration​

Select the region where the EFS resources reside. The module uses the standard regional Amazon EFS HTTPS endpoint and an access key pair from the verified connection. Inline credentials, session tokens, and custom endpoints are outside this connection contract.

Operations​

  • list_file_systems calls DescribeFileSystems. With no fileSystemId, it returns one regional inventory page for the connected account. With an ID, it queries that exact file system without a continuation token.
  • list_mount_targets calls DescribeMountTargets for the supplied fileSystemId. AWS controls the page size. An empty list means the lookup returned no mount targets on that page.

Errors and Failure Modes​

  • If input validation fails, check the operation, region, file system ID, and whether pagination fields apply to the operation.
  • If the connection is unavailable, confirm it is a verified, READY AWS connection with both protected credential fields populated.
  • If AWS denies or cannot find a resource, check the connection's IAM permissions and the file system ID, account, and region.
  • Use the AWS request reference where available when investigating provider errors. Honor error.retryable when deciding whether to retry.
  • A successful lookup can contain resources whose lifecycle state is still changing. Evaluate those states separately from the lookup status.

Example​

Inspect placement for a file system before reviewing a deployment that uses EFS.

{
"operation": "list_mount_targets",
"region": "us-west-2",
"fileSystemId": "fs-0123456789abcdef0"
}

A successful final page can return one available mount target.

{
"status": "success",
"operation": "list_mount_targets",
"items": [
{
"mountTargetId": "fsmt-0123456789abcdef0",
"fileSystemId": "fs-0123456789abcdef0",
"lifecycleState": "available",
"vpcId": "vpc-0123456789abcdef0",
"subnetId": "subnet-0123456789abcdef0",
"availabilityZoneId": "usw2-az1",
"availabilityZoneName": "us-west-2a"
}
],
"count": 1,
"hasMore": false
}

Compare the returned availabilityZoneId values and lifecycle states with the deployment's requirements. Route a missing or still-provisioning target to the storage team for review.

Notes​

  • When hasMore is true, pass nextToken unchanged to a new call using the same operation, connection, region, and applicable filters. Set a maximum number of pages per workflow run.
  • Space scheduled inventory reads and use backoff for retryable throttling. See Amazon EFS endpoints and quotas.
  • Reads are safe to repeat. AWS does not guarantee item order, and inventory can change while a workflow is paging. Compare or deduplicate by the resource ID.
  • The module reads resource metadata. It leaves file systems, mount targets, security groups, and file contents untouched.