skillfed

aws-cdk.aws-efs

The CDK Construct Library for AWS::EFS

aws-cdk-aws-efs v1.204.0 164.5K downloads/30d#10,546 on PyPI12,868
Permissive license Apache-2.0 Active released

What it is and what it does

This package provides Python constructs for the AWS CDK v1 framework to declaratively define Amazon EFS file systems and related resources. It wraps EFS capabilities—file system creation, access points, lifecycle policies, performance modes, and security group management—into reusable CDK components that generate CloudFormation templates.

The module allows you to create POSIX-compliant, shared NFS storage accessible across EC2 instances and availability zones, configure encryption at rest, set lifecycle transitions to infrequent-access storage, import existing file systems, and manage access permissions via IAM roles. However, AWS CDK v1 reached end-of-support on 2023-06-01 and is no longer being updated; this package will not receive new features or maintenance.

Use it for:

  • Define shared file storage for multi-instance EC2 workloads using infrastructure-as-code in AWS CDK v1 projects.
  • Create EFS access points that enforce OS user/group identity and restrict client access to specific directory trees.
  • Import and reference existing EFS file systems into a CDK stack to grant IAM roles file system permissions.
  • Configure EFS lifecycle policies and performance modes at stack definition time rather than via the AWS console.
  • Automatically mount EFS on EC2 instances during launch by combining file system constructs with user data scripts.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides CDK constructs to define Amazon EFS file systems, access points, and related networking within AWS infrastructure-as-code.

No. This package is end-of-support as of 2023-06-01 and is no longer being updated. AWS CDK v1 itself has reached end-of-support, and users should migrate to AWS CDK v2. Installing this package locks you into a deprecated framework version. If you are already on CDK v1, it may work, but new projects should use the v2 equivalent instead.

Install

aws-cdk-aws-efs on PyPI

pip

pip install aws-cdk-aws-efs

uv

uv add aws-cdk-aws-efs

poetry

poetry add aws-cdk-aws-efs

Installing aws-cdk.aws-efs

Before you install

Low friction installation. The package is marked inactive (Development Status :: 7 - Inactive) because AWS CDK v1 reached end-of-support on 2023-06-01; users should migrate to AWS CDK v2 instead. The repository remains active but this specific module is no longer being updated.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions, typical for AWS CDK libraries.

Quickstart

from aws_cdk import aws_efs as efs, aws_ec2 as ec2

file_system = efs.FileSystem(self, "MyEfsFileSystem",
    vpc=ec2.Vpc(self, "VPC"),
    lifecycle_policy=efs.LifecyclePolicy.AFTER_14_DAYS,
    performance_mode=efs.PerformanceMode.GENERAL_PURPOSE
)

Requires AWS CDK v1 environment and Python 3.7 or later. AWS CDK v1 is end-of-support as of 2023-06-01; new projects should use AWS CDK v2 instead.

Verify before relying

  • Whether existing AWS CDK v1 projects can safely continue using this package despite end-of-support status.
  • Migration path complexity and effort for moving from this v1 module to AWS CDK v2 equivalents.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (~=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 10 — aws-cdk.aws-ec2, aws-cdk.aws-iam, aws-cdk.aws-kms, aws-cdk.cloud-assembly-schema, aws-cdk.core, aws-cdk.cx-api, constructs, jsii, publication, typeguard
Maintenance actively maintained — 1,152 days since the last release
Last repo commit
First released
Downloads 164,491/month — #10,546 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: aws_cdk.aws_efs-1.204.0-py3-none-any.whl

Development Status :: 7 - InactiveFramework :: AWS CDKFramework :: AWS CDK :: 1Intended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed

Tags

aws cdk efs file systemelastic file system constructaws efs infrastructure as codecdk aws storageefs mount points cdkshared file storage awsposix compliant nfs aws
aws-cdkinfrastructure-as-codeend-of-support

More Build Tools packages

packaging

Provides reusable utilities for Python…

permissive · top 100 on PyPI

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

pip

pip is the standard installer for Python…

permissive · top 100 on PyPI

hatchling

Hatchling is a standards-compliant Python build…

permissive · top 100 on PyPI

grpcio-tools

Generates Python gRPC service stubs and message…

permissive · top 1,000 on PyPI

pre-commit

pre-commit is a framework for installing and…

permissive · top 1,000 on PyPI

aws-cdk.aws-ec2

Provides AWS CDK constructs for defining EC2…

permissive · top 15,000 on PyPI

aws-cdk.aws-fsx

Provides AWS CDK constructs for defining and…

permissive · top 15,000 on PyPI

awsebcli

EB CLI is a command-line tool for deploying,…

permissive · top 15,000 on PyPI

aws-cdk.aws-ecs

Provides AWS CDK constructs for defining and…

permissive · top 15,000 on PyPI

aws-cdk.aws-ecr

Provides AWS CDK constructs for defining,…

permissive · top 15,000 on PyPI

aws-cdk.aws-elasticloadbalancing

Provides AWS CDK constructs for configuring and…

permissive · top 15,000 on PyPI

aws-cdk.aws-elasticloadbalancingv2

Provides AWS CDK constructs for defining and…

permissive · top 15,000 on PyPI

aws-cdk.aws-batch

Defines AWS Batch infrastructure (compute…

permissive · top 15,000 on PyPI

aws-cdk.aws-redshift-alpha

Defines AWS Redshift clusters and database…

permissive · top 15,000 on PyPI

aws-cdk.aws-imagebuilder

Provides AWS CDK L1 constructs for defining and…

permissive · top 15,000 on PyPI