Description
I have setup an agent harness and added a second target region for the same account. Deployment to the first region succeeds. When deploying to the second region the deployment fails.
When running the CLI in TUI mode, error message is not returned in the UI (but is present in the log).
[09:10:36] Error: CDK deploy failed: ❌ �[1mAgentCore-HarnessTest-eu�[22m failed: DeploymentError: The stack named AgentCore-HarnessTest-eu failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "Resource of type 'AWS::IAM::Role' with identifier 'HarnessTest_MyHarness' already exists." (RequestToken: a67da7f0-e57d-39b6-cd35-f086e9018be4, HandlerErrorCode: AlreadyExists)
[09:10:36] Status: FAILED
Steps to Reproduce
- Create a new agent harness
- ensure you have two targets in
agentcore/aws-targets.json for same account different regions
- deploy the agent in one target
- deploy the agent in another target
Expected Behavior
Deployment succeeds
Actual Behavior
Deployment fails because IAM role already exists
CLI Version
No response
Operating System
macOS
Additional Context
No response
Description
I have setup an agent harness and added a second target region for the same account. Deployment to the first region succeeds. When deploying to the second region the deployment fails.
When running the CLI in TUI mode, error message is not returned in the UI (but is present in the log).
Steps to Reproduce
agentcore/aws-targets.jsonfor same account different regionsExpected Behavior
Deployment succeeds
Actual Behavior
Deployment fails because IAM role already exists
CLI Version
No response
Operating System
macOS
Additional Context
No response