Repository navigation
Conversation
sasha177
force-pushed
the
feat/s3-bucket-mount
branch
from
November 23, 2026 23:48
d6dad35 to
a5adc86
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
s3BucketMount(Mountpoint for Amazon S3) as afilesystemConfigurationsentry for runtimes, inagentcore.jsonand inagentcore add runtime --filesystem-configurations. Fields:bucketandmountPath(required),prefix,s3BucketOwnerands3BucketRegion(optional).Design decisions:
platformVersion: "V2"rather than relying on the service default.{runtimeSessionId}as the only placeholder, the prefix characters and segments, and the resolved prefix length, so a bad entry fails atadd/validateinstead of at deploy. The object is strict, so a misspelleds3BucketOwnerfails instead of being dropped.agentcore deploycreates getss3:ListBucketands3:GetObject, scoped to the bucket and prefix (a{runtimeSessionId}prefix is scoped per session). Write and delete access stays the customer's choice, throughadditionalPoliciesor their own role. Directory buckets get no grant, becauses3express:CreateSessioncan't be limited to reads.add runtimeprints a note when a runtime has ans3BucketMount, and the--filesystem-configurationshelp says it gets read-only access. The runtime README has a short S3 bucket mount section that links to the AgentCore file system docs and Mountpoint's file behavior. AGENTS.md and the A2A prompt tell the agent the mount is read-only unless write access was added.Depends on aws/agentcore-l3-cdk-constructs#480. Deploying needs an
@aws/agentcore-cdkrelease that supportss3BucketMount, and a bump of the pin insrc/assets/cdk/package.json. The current pin (1.2.0) rejects the entry at synth, so this should merge with or after that bump.Related Issue
Closes #2898
Documentation PR
Included here (runtime README and AGENTS.md templates).
Type of Change
Testing
How have you tested the change?
bun test(one failure,CodeZipDevRunner > starts tsx directly when Node dependencies exist, fails the same way onfeat/snapshotwithout this change)bun run test:e2e, or explained why they are not applicable(CI does not run them for you): not run yet; deploying needs the
@aws/agentcore-cdkrelease above. Planned for the bug bash.bun run typecheckbun run lint:checkbun run format:checkbun run auditbun run secrets:checkbun run buildsrc/assets/, I updated affected snapshots withbun test <test-file> --update-snapshotsand committed them (no snapshot changes)by this PR (none re-recorded)
command.md(the release workflow regenerates it)Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.