feat(import): extract and pass through executionRoleArn from starter toolkit YAML#729
Merged
jesseturner21 merged 1 commit intoaws:mainfrom Mar 30, 2026
Merged
Conversation
Contributor
Package TarballHow to installnpm install https://github.com/aws/agentcore-cli/releases/download/pr-729-tarball/aws-agentcore-0.4.0.tgz |
…toolkit YAML Parse the `aws.execution_role` field from `.bedrock_agentcore.yaml` and propagate it through the import pipeline into `agentcore.json`. When present, CDK uses the existing IAM role instead of creating a new one. - Add optional `executionRoleArn` to AgentEnvSpecSchema - Add `executionRoleArn` to ParsedStarterToolkitAgent type - Extract `execution_role` from YAML aws config in parser - Pass through to AgentEnvSpec in toAgentEnvSpec()
5843cf5 to
be2c8e9
Compare
aidandaly24
approved these changes
Mar 30, 2026
jesseturner21
added a commit
that referenced
this pull request
Mar 30, 2026
The executionRoleArn field was added to the Zod schema in #729 but the JSON schema was not updated to match. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 tasks
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
aws.execution_rolefield from.bedrock_agentcore.yamland propagate it through the import pipeline intoagentcore.jsonexecutionRoleArntoAgentEnvSpecSchema,ParsedStarterToolkitAgent, YAML parser, andtoAgentEnvSpec()User Experience
Before
After
Reverting to a CDK-managed role
Remove
executionRoleArnfromagentcore.jsonand runagentcore deploy.Test plan
execution_role, spec generation with/withoutexecutionRoleArnnpm run typecheckpassesnpm run lintpasses (via pre-commit hook)🤖 Generated with Claude Code