Skip to content

feat(runtime): support s3BucketMount filesystem configurations - #2897

Open
sasha177 wants to merge 1 commit into
feat/snapshotfrom
feat/s3-bucket-mount
Open

sasha177 wants to merge 1 commit into
feat/snapshotfrom
feat/s3-bucket-mount

Conversation

@sasha177

@sasha177 sasha177 commented Nov 23, 2026 •

Copy link
Copy Markdown

Description

Adds s3BucketMount (Mountpoint for Amazon S3) as a filesystemConfigurations entry for runtimes, in agentcore.json and in agentcore add runtime --filesystem-configurations. Fields: bucket and mountPath (required), prefix, s3BucketOwner and s3BucketRegion (optional).

Design decisions:

  • V2 only, set explicitly. The service mounts S3 buckets only on platform version V2, so the schema requires platformVersion: "V2" rather than relying on the service default.
  • Same rules as the service. The schema checks mountable bucket names, {runtimeSessionId} as the only placeholder, the prefix characters and segments, and the resolved prefix length, so a bad entry fails at add/validate instead of at deploy. The object is strict, so a misspelled s3BucketOwner fails instead of being dropped.
  • Read-only access by default. The execution role that agentcore deploy creates gets s3:ListBucket and s3:GetObject, scoped to the bucket and prefix (a {runtimeSessionId} prefix is scoped per session). Write and delete access stays the customer's choice, through additionalPolicies or their own role. Directory buckets get no grant, because s3express:CreateSession can't be limited to reads.
  • Customers are told before deploy. add runtime prints a note when a runtime has an s3BucketMount, and the --filesystem-configurations help 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.
  • No VPC requirement and no per-type count; the existing five-entry limit and unique mount paths apply.

Depends on aws/agentcore-l3-cdk-constructs#480. Deploying needs an @aws/agentcore-cdk release that supports s3BucketMount, and a bump of the pin in src/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

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Testing

How have you tested the change?

  • I ran bun test (one failure, CodeZipDevRunner > starts tsx directly when Node dependencies exist, fails the same way on feat/snapshot without this change)
  • I ran the relevant end-to-end tests with 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-cdk release above. Planned for the bug bash.
  • I ran bun run typecheck
  • I ran bun run lint:check
  • I ran bun run format:check
  • I ran bun run audit
  • I ran bun run secrets:check
  • I ran bun run build
  • If I modified src/assets/, I updated affected snapshots with bun test <test-file> --update-snapshots and committed them (no snapshot changes)
  • If I re-recorded fixtures or golden files, every change beyond account identifiers is explained
    by this PR (none re-recorded)
  • This PR does not change command.md (the release workflow regenerates it)

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published (needs aws/agentcore-l3-cdk-constructs#480 and its release)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

@sasha177
sasha177 force-pushed the feat/s3-bucket-mount branch from d6dad35 to a5adc86 Compare November 23, 2026 23:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant