Skip to content

fix(runtime): leave s3BucketMount V2 rule to the service - #2915

Merged
jariy17 merged 1 commit into
release/2026-11-25from
fix/s3-bucket-mount-cp-only-checks
Nov 25, 2026
Merged

jariy17 merged 1 commit into
release/2026-11-25from
fix/s3-bucket-mount-cp-only-checks

Conversation

@sasha177

Copy link
Copy Markdown
Contributor

Description

Bug bash finding F-sashaxm-C35 (§7 of the 2026-11-25 bug bash doc).

The CLI no longer requires platformVersion: V2 for an s3BucketMount entry. The service already enforces that rule at deploy, so keeping a copy in the CLI meant two places to change if the CP rule changes. The copy was also stricter than the service: it blocked an update that leaves platformVersion unset, which the service keeps as V2 (C35). The CLI still checks the entry's shape (lengths, mountPath pattern, owner and Region formats, strict keys). The --filesystem-configurations help still says an S3 mount needs V2.

This also restores the s3BucketMount schema tests in src/projectSchemas/runtime.test.ts, which the merge of #2897 into this branch dropped.

Pairs with the matching aws/agentcore-l3-cdk-constructs PR against release/2026-11-25.

Related Issue

Part of #2898

Documentation PR

Not applicable.

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 (5147 pass; the one failure, CodeZipDevRunner > starts tsx directly when Node dependencies exist, also fails 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; bug bash cases C23, C24 and C35 cover the deploy-time behavior
  • 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
  • If I re-recorded fixtures or golden files, every change beyond account identifiers is explained
    by this PR
  • 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

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

@jariy17
jariy17 merged commit ae14bb5 into release/2026-11-25 Nov 25, 2026
@jariy17
jariy17 deleted the fix/s3-bucket-mount-cp-only-checks branch November 25, 2026 02:58
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.

2 participants