feat(capacity-provider): capacity provider support - #2068
Open
xxuam wants to merge 2 commits into
Open
Conversation
This reverts commit 0cd32ba.
…d DevEx polish - J2/J3: attach a runtime to a capacity provider by name or ARN, and mount CP volumes - J4: `capacity-provider delete-session` data-plane command - TUI: full add-capacity-provider wizard (volumes, encryption/KMS, instance profile, lifecycle timeouts); capacity-provider attach in the agent create/template and BYO flows - paired `--volume-name`/`--volume-size` flags (replacing `--volume name:sizeGiB`) - referential-integrity guard: block removing a capacity provider still referenced by a runtime - drop `[preview]` from the capacity-provider add/remove menus Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
|
Claude Security Review: no high-confidence findings. (run) |
Contributor
Coverage Report
|
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
Completes the AgentCore Capacity Provider feature end to end and brings its DevEx to parity with the rest of the CLI.
This PR carries two commits — the revert-of-revert that restores Journey 1, plus a new commit adding Journeys 2–4 and the DevEx polish — so it delivers the full feature:
add capacity-provider/remove capacity-provider), persisted toagentcore.jsonand synthesized to anAWS::BedrockAgentCore::CapacityProviderCloudFormation resource (VPC, launch parameters, named EBS volumes, lifecycle, auto-created operator role), withdeploy/statusintegration. (Restored here viarevert-of-revert; originally feat(capacity-provider): add capacity-provider resource (Journey 1) #2030, reverted in revert: remove capacity-provider Journey 1 #2045 for release timing.)
add agent --capacity-provider <name-or-arn>), rendered ascapacityProviderConfigurationon the runtime (network configis mutually exclusive and omitted).
--cp-volume-name/--cp-volume-mount-path), routed through the existing filesystem-mount framework.capacity-provider delete-sessiondata-plane command to deprovision a live CP session (destructive confirm,--yes, name/id/ARN resolution).add capacity-providerwizard (named volumes, EBS encryption + KMS key, instance profile, lifecycle timeouts); capacity-provider attach is now available in the agentcreate/template flow (and
agentcore create) as well as the BYO flow.--volume-name/--volume-sizeflags (replacing--volume name:sizeGiB, for consistency with the other paired flags); a referential-integrity guard that blocks removing a capacityprovider still referenced by a runtime; and removal of the
[preview]label from the CP add/remove menus.@aws-sdk/client-bedrock-agentcoreto a version that shipsDeleteCapacityProviderSessionCommand.Related Issue
Closes #
Documentation PR
Type of Change
Testing
How have you tested the change?
npm run test:unitandnpm run test:integnpm run typechecknpm run lintsrc/assets/, I rannpm run test:update-snapshotsand committed the updated snapshotsDetails:
buildCreateAgentConfigmapping, theuseGenerateWizardCP flow, the wizardbuildStepssequencing, and a duplicate-menu guard.add capacity-providerwizard (forward + back-navigation, including encrypt→KMS→back→No), the agent create/template CP attach,agentcore createwith a CP-by-ARN, andthe BYO CP flow.
READY, invoke returned a response,delete-sessiondeprovisioned the session,and teardown removed the stack cleanly.
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.