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
- Create and verify an Amazon EFS connection in the Integration Account Console. Confirm its status is
READY. - Add Amazon EFS to a Workflow Studio task and choose that connection under General > Connection.
- Set the AWS
region. Chooselist_file_systemsfor an inventory page or an exact file system lookup. Chooselist_mount_targetswith a knownfileSystemIdto inspect target placement. - Check
statusbefore using the returned items. IfhasMoreis true, collect the remaining pages before evaluating inventory-wide or placement rules.
Inputs
| Input | Type | Required | Default | Purpose |
|---|---|---|---|---|
operation | string | No | list_file_systems | Select a file system lookup or a mount target list. |
region | string | Yes | — | AWS region that contains the resources, in the commercial AWS or AWS GovCloud partition. |
fileSystemId | string | For mount targets | — | EFS file system ID such as fs-0123456789abcdef0. On list_file_systems, it limits the result to the exact file system. |
limit | integer | No | 25 for file system inventory | Maximum file systems per inventory page, from 1 through 100. Mount target page size is determined by AWS. |
nextToken | string | No | — | Opaque continuation token from the previous list page. Omit it for the first page and for an exact file system lookup. |
Outputs
| Output | Meaning |
|---|---|
status / operation | Lookup outcome and the selected operation, when recognized. |
items / count | Resource summaries and the number returned in this result. |
hasMore / nextToken | Whether another page is available and its token when present. |
requestId | AWS request reference, when available. |
error | Redacted 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_systemscalls DescribeFileSystems. With nofileSystemId, 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_targetscalls DescribeMountTargets for the suppliedfileSystemId. 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,
READYAWS 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.retryablewhen 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
hasMoreis true, passnextTokenunchanged 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.