Skip to content

Mount

Source: src/AWS/EFS/Mount.ts

Host-agnostic EFS mount binding.

yield* EFS.mount(accessPoint, { path: "/mnt/data" }) inside a compute body wires the file system into whatever host the code deploys to:

  • Lambda — injects a FileSystemConfigs entry (the access point ARN + local mount path) through the Function’s binding channel and grants the execution role elasticfilesystem:ClientMount/ClientWrite scoped to the access point. Lambda requires an AWS.EFS.AccessPoint (not a bare file system) and a /mnt/… path, and the Function must have vpc set to subnets that can reach an EFS mount target.
  • ECS Task — injects a task-level EFS volume (transit encryption on, IAM auth on, access-point scoped when one is given) plus a container mount point, and grants the task role the matching client actions.

Provide the EFS.MountLive layer on the Function/Task Effect to satisfy the binding. Mount targets for the file system’s VPC/subnets must already exist (AWS.EFS.MountTarget).