aws / aws/aws-cdk

add an initialization script to aws-cdk-lib.aws_efs module

Open
#19,850 2 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/aws-efs feature-request needs-cfn p3
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

allow a set of commands to be executed when the elastic file system is created.

### Use Case

Allowing to create a set of directories when the elastic file system is created.
Currently every lambda invocation needs to check if the working directories exists and create them if it's not the case.

### Proposed Solution

adding an initialisation data that take a set of commands similar to `ec2Instance.userData.addCommands();`

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

1.152.0

### Environment details (OS name and version, etc.)

macos 12

Contributor guide

Open the contributing guide

Research direction

The requested entry point is the aws-cdk-lib.aws_efs module; inspect its file-system creation API and related tests to find where initialization data could fit. First verify the lifecycle constraints for running commands when an Elastic File System is created. Done should provide a documented and tested way to supply commands for creating initial working directories.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.