aws-fsx: L2 Constructs for DataRepositoryAssociation
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Describe the feature
Currently we have an L2 construct for [`LustreFileSystem`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_fsx.LustreFileSystem.html) but we are missing the L2 constructs for `DataRepositoryAssociation` ([`CfnDataRepositoryAssociation`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_fsx.CfnDataRepositoryAssociation.html)).
### Use Case
Use case is to create an FSx backed by an S3 bucket using a DRA. Currently its confusing since the `LustreFileSystem` L2 construct accepts the [`LustreConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_fsx.LustreConfiguration.html) which defines an `importPath` and `exportPath` but its not clear (or verified via the type system) that this cannot be used in conjunction with the DRA.
Docs: https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-fsx-filesystem-lustreconfiguration.html
>This parameter is not supported for file systems with a data repository association.
### Proposed Solution
Create an L2 construct for DataRepositoryAssociation which validates that `importPath`/`exportPath` is not set on the `LustreFileSystem`. And make the documentation clear on how to set up a LustreFileSystem backed by an S3 bucket.
### Other Information
_No response_
### Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### AWS CDK Library version (aws-cdk-lib)
2.191.0
### AWS CDK CLI version
2.1011.0 (build cd4ec06)
### Environment details (OS name and version, etc.)
Amazon Linux 2
Contributor guide
Assessment
This issue has not been assessed yet.