Registry / aws / aws-cdk-aws-fsx

aws-cdk-aws-fsx

JSON →
library1.204.0pypypi✓ verified 85d ago

AWS CDK L1 constructs for Amazon FSx (AWS::FSx CloudFormation resource). Version 1.204.0 is for CDK v1 (now in maintenance mode). AWS CDK v2 replaces this with the `aws-cdk-lib/aws-fsx` module. Release cadence: tied to AWS CDK releases (weekly).

pip install aws-cdk-aws-fsx
INSTALL
IMPORT
SIG · AWS-CDK-AWS-FSX
A
aws-cdk-aws-fsx
awspythonv1.204.0
Install
5.6s avg
Import
Disk
50MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.204.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 48.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 5.6s · import 0.000s · 49MB
50MB installed
● package 50MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CfnFileSystem
from aws_cdk.aws_fsx import CfnFileSystem
from aws_cdk.aws_fsx import FileSystem
CDK v2 uses different class names; also, high-level constructs exist in separate modules.
CfnStorageVirtualMachine
from aws_cdk.aws_fsx import CfnStorageVirtualMachine
from aws_cdk.aws_fsx import StorageVirtualMachine
Ensure correct Cfn prefix for L1 constructs.

Minimal CDK v1 stack creating an FSx for Lustre file system.

from aws_cdk import core from aws_cdk.aws_fsx import CfnFileSystem app = core.App() stack = core.Stack(app, "MyStack") fs = CfnFileSystem(stack, "MyFsx", file_system_type="LUSTRE", subnet_ids=["subnet-12345678"], storage_capacity=1200 ) app.synth()
Debug
Known issues
deprecatedaws-cdk-aws-fsx is part of CDK v1, which entered maintenance mode on June 1, 2022 and will end support on June 1, 2025. Use CDK v2 with aws-cdk-lib/aws-fsx instead.
fix
Migrate to CDK v2: replace 'aws-cdk-aws-fsx' with 'aws-cdk-lib' and update imports to 'from aws_cdk.aws_fsx import ...'.
affects: <=1.204.0
gotchaCDK v1 uses separate packages for each service. If you install only aws-cdk-aws-fsx, the core CDK library (aws-cdk.core) must also be installed explicitly.
fix
Install both: pip install aws-cdk.core aws-cdk-aws-fsx.
affects: <=1.204.0
breakingCDK v2 removed the 'Cfn' prefix from L1 constructs? Actually, CDK v2 retains 'Cfn' prefix. Breaking change: release 1.19.0 renamed some properties (e.g., 'lustre_configuration' -> 'lustreConfiguration').
fix
Use camelCase property names for CDK v1 >=1.19.0. Example: 'lustreConfiguration' instead of 'lustre_configuration'.
affects: <=1.19.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'aws_cdk.aws_fsx'
Missing aws-cdk-aws-fsx installation or wrong CDK version (v2 needs aws-cdk-lib).
fix
For CDK v1: pip install aws-cdk-aws-fsx. For CDK v2: install aws-cdk-lib and use 'from aws_cdk.aws_fsx import ...' (no separate package).
AttributeError: 'CfnFileSystem' object has no attribute 'lustre_configuration'
CDK v1 >=1.19.0 switched to camelCase property names.
fix
Use camelCase: 'lustreConfiguration' instead of 'lustre_configuration'.
jsii.errors.JSIIError: Expected an object, got undefined
Missing required property like 'subnet_ids' or 'storage_capacity' when creating CfnFileSystem.
fix
Ensure all required properties are provided. For example, for LUSTRE: file_system_type='LUSTRE', subnet_ids=[...], storage_capacity=1200.
Upgrade
Version history
1.204.0latest on PyPI · released Jun 19, 2023
Audit
Dependencies
aws-cdk-librequiredCDK v2 uses aws-cdk-lib instead of individual packages; no longer needed.
constructsrequiredPeer dependency for CDK constructs.
Agent activity
19 hits · last 30 days
node
16
Amazon
1
Resources
aws-cdk-aws-fsx — pip install aws-cdk-aws-fsx · libregistry