feat(bedrockagentcore): add filesystem configuration to Runtime#37639
feat(bedrockagentcore): add filesystem configuration to Runtime#37639mazyu36 wants to merge 5 commits into
Conversation
|
|
||||||||||||||
|
|
||||||||||||||
91599d5 to
2e31c90
Compare
2e31c90 to
9deaab8
Compare
Exposes the `FilesystemConfigurations` CloudFormation property on `AWS::BedrockAgentCore::Runtime` via a new optional `filesystemConfiguration` prop on the Runtime L2 construct. Users can now configure managed session storage (persistent filesystem across stop/resume cycles) by providing a `sessionStorage.mountPath`. Because CloudFormation currently caps `FilesystemConfigurations` at MaxItems=1, the L2 accepts a single `FilesystemConfiguration` object and wraps it into a one-element array before passing to L1 — the same pattern Lambda uses for its `filesystem` prop vs the underlying `FileSystemConfigs` array. MountPath is validated eagerly at synth time (length 6..200, pattern `^/mnt/[a-zA-Z0-9._-]+/?$`), with `Token.isUnresolved` skipping for late-bound values.
9deaab8 to
a9b0dbe
Compare
|
👋 It looks like your PR description follows the template but is missing a valid issue number in the first section. PRs without a linked issue will receive lower priority for review and merging. Please update the description to include a reference like |
…ime-filesystem-configuration
Replace the single-object `filesystemConfiguration` prop with an array-shaped `filesystems: Filesystem[]` modeled as an abstract `Filesystem` class with a `Filesystem.sessionStorage(mountPath)` static factory. Add synth-time validations for service-side limits: up to 5 filesystems total, at most 1 managed session storage, mount paths unique across all configurations, and mount paths cannot be subdirectories of each other. Existing mount path pattern and length checks are kept.
Issue # (if applicable)
N/A
Reason for this change
The Runtime L2 did not expose
filesystemConfigurations, so users could not configure managed session storage without dropping down to L1.Description of changes
Adds
filesystems: Filesystem[]on the Runtime with aFilesystem.sessionStorage(mountPath)factory. The array shape matches the CFN model (MaxItems = 5) so additionalFilesystemfactories can be added later without breaking the API.Synth-time validations (per docs): up to 5 filesystems total, at most 1 managed session storage, mount path pattern/length, mount paths unique and not subdirectories of each other (Token-safe).
Describe any new or updated permissions being added
None.
Description of how you validated changes
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license