feat(aws): Bedrock AgentCore agent composite — base path (#882) - #915
Merged
Conversation
Adds AgentCoreAgent, wiring Runtime + RuntimeEndpoint + Memory +
Gateway/GatewayTarget + WorkloadIdentity + IAM into one CloudFormation
bundle, and an example (bedrock-agentcore-agent) deploying it with the
existing cfn-deploy + wait-for-stack capabilities — no bespoke verb.
Spot-checked Runtime/RuntimeEndpoint/Memory against the CFN registry
schema: every field the composite needs is already generated, but their
Name/AgentRuntimeName pattern (^[a-zA-Z][a-zA-Z0-9_]{0,47}$) rejects
hyphens, unlike chant's usual kebab-case names — the composite sanitizes
for that family and leaves Gateway/GatewayTarget/WorkloadIdentity (which
accept hyphens) alone.
The agentcore-deploy version-promotion capability stays deferred,
gated on Bedrock AgentCore Runtime reaching GA per the issue.
lex00
force-pushed
the
feat/882-agentcore-composite
branch
from
July 14, 2026 21:47
6c6214a to
5098ca6
Compare
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.
Summary
AgentCoreAgentto the aws lexicon (lexicons/aws/src/composites/agentcore-agent.ts): a composite wiringRuntime+RuntimeEndpoint+Memory+Gateway/GatewayTarget+WorkloadIdentity+ two IAM roles into one CloudFormation-serializable bundle. No CFN gap — every field the composite needs was already generated inlexicons/aws/src/generated.examples/bedrock-agentcore-agent: an example deploying an AgentCore agent viacfn-deploy+wait-for-stack(the existing aws-lexicon capabilities), no bespoke verb.chant build/chant lintverified directly against the example.Runtime/RuntimeEndpoint/Memoryagainst the live CloudFormation registry schema (all three required-field sets match exactly). One real finding from that check: theirName/AgentRuntimeNamepattern (^[a-zA-Z][a-zA-Z0-9_]{0,47}$) rejects hyphens, unlike chant's usual kebab-case names —Gateway/GatewayTarget/WorkloadIdentityaccept hyphens. The composite sanitizes names for the no-hyphen family and leaves the rest as-is; documented in the composite's doc comment.WorkloadIdentityDetailson bothRuntimeandGatewayis CFNreadOnly(AWS auto-provisions it per-resource) — theWorkloadIdentityresource this composite creates is therefore standalone, included per the issue's resource list but not cross-wired (documented in-code).Deferred (per issue, not implemented here)
The
agentcore-deployversion-promotion capability (repointingRuntimeEndpoint'sTargetVersion/LiveVersionat a newRuntimeversion, with rollback) stays out of scope — gated on a concrete promotion use case and on Bedrock AgentCore Runtime reaching GA. Also out of scope: invoking the deployed agent, and any of Loom's hosted-platform surface (UI/auth/registry/dashboards).Test plan
npm run build -w @intentius/chant-lexicon-awspassesjust lintcleanjust buildclean (core untouched, ran anyway)npx vitest run: only 4 pre-existing, unrelated azure-lexicon roundtrip failures (confirmed present onorigin/maintoo, independent of this change)chant lint srcandchant build src --lexicon awsrun directly against the new example — clean lint, valid CFN template with all 8 resources + 4 outputs, all cross-references resolved toFn::GetAttCloses #882 (base path only —
agentcore-deploycapability left as documented, GA-gated scope).