helpful-parrot-75251
03/06/2025, 6:40 PMconst random = Date.now().toString(36)
const agentAlias = new aws.bedrock.AgentAgentAlias(
`twelveLabsIconikAgentAlias-${random}`,
{
agentId: agentAgent.agentId,
agentAliasName: `live-alias-${random}`,
routingConfigurations: undefined,
},
{
dependsOn: [agentAgentActionGroup],
}
)
But that seems odd and not right (it's working tho), because it's removing the previous alias and creating a new one. It's not clearing the earlier versions. It's also creating a new one at every deploy that is not necessary.
This is making an update to my lambda also, which is not required (to update to the new aliasId), instead of just changing the version of the current AgentAlias.
Any input on this? How could I improve my deploy?