Skip to content

EFS: support setting the AZ when setting up a oneZone FileSystem #30005

@kabo

Description

@kabo

Describe the feature

We'd like to be able to specify which AZ the one-zone FS should be in

Use Case

So it's in the same AZ as the rest of our setup. This is for a test environment so one AZ is fine and cheaper.

Proposed Solution

There's a vpcSubnets constructor prop, it'd be handy if it could work like this

    const efs = new FileSystem(this, 'Efs', {
      vpc,
      encrypted: true,
      oneZone: true,
      vpcSubnets: { availabilityZones: [ 'eu-west-1b' ] },
    })

But maybe some other solution is easier.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.136.0

Environment details (OS name and version, etc.)

Artix Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-efsRelated to Amazon Elastic File Systemeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions