Description
Gateway Target names should be unique within their parent Gateway, matching the
AgentCore service contract, rather than unique across an entire CLI project.
Today the CLI effectively requires project-global Target names because the L3
construct emits Target outputs using only the Target name:
GatewayTarget<TargetName>Id
The old CLI's CloudFormation output parser also expects that format. As a result,
two Gateways cannot both have a naturally named Target such as search, even
though the service permits it.
Change the L3 output contract to include the parent Gateway:
<GatewayName>Target<TargetName>Id
The CLI should enforce uniqueness only inside each Gateway. During the
transition, the old CLI output parser should accept both the existing
Target-only format and the new Gateway-qualified format so existing deployed
stacks continue to work.
This was intentionally deferred from #2028 to keep that PR
compatible with the currently published L3 output contract.
Acceptance Criteria
Additional Context
This requires coordinated changes in:
aws/agentcore-l3-cdk-constructs for Gateway-qualified outputs;
- the old CLI output parser and deployment-state mapping;
- the project-based refactor's Target uniqueness validation.
Description
Gateway Target names should be unique within their parent Gateway, matching the
AgentCore service contract, rather than unique across an entire CLI project.
Today the CLI effectively requires project-global Target names because the L3
construct emits Target outputs using only the Target name:
The old CLI's CloudFormation output parser also expects that format. As a result,
two Gateways cannot both have a naturally named Target such as
search, eventhough the service permits it.
Change the L3 output contract to include the parent Gateway:
The CLI should enforce uniqueness only inside each Gateway. During the
transition, the old CLI output parser should accept both the existing
Target-only format and the new Gateway-qualified format so existing deployed
stacks continue to work.
This was intentionally deferred from #2028 to keep that PR
compatible with the currently published L3 output contract.
Acceptance Criteria
GatewayTarget<TargetName>Idand new<GatewayName>Target<TargetName>Idoutputs.Additional Context
This requires coordinated changes in:
aws/agentcore-l3-cdk-constructsfor Gateway-qualified outputs;