Skip to content

Support S3 bucket mounts (s3BucketMount) on runtimes #2898

Done

Description

@sasha177

Description

AgentCore Runtime can mount an S3 bucket, or one prefix in it, as a directory in each session with Mountpoint for Amazon S3 (s3BucketMount in filesystemConfigurations, platform version V2). The CLI has no way to set it: the project schema rejects an s3BucketMount entry, so the only way to use it today is a custom CDK override.

Acceptance Criteria

  • A runtime in agentcore/agentcore.json accepts an s3BucketMount entry in filesystemConfigurations (bucket, mountPath, optional prefix, s3BucketOwner, s3BucketRegion), with basic shape checks (the full rules are enforced in @aws/agentcore-cdk at synth), and requires platformVersion: V2.
  • agentcore add runtime --filesystem-configurations accepts the same entry.
  • The CDK app passes it through as S3BucketMount on the generated Runtime resource, and the execution role it creates gets read-write S3 access scoped to the bucket and prefix (plus s3express:CreateSession for directory buckets). Imported roles get no grant.

Additional Context

Docs: https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-filesystem-configurations.html. This depends on @aws/agentcore-cdk support and on the platformVersion work in #2674.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions