Hey there! (I'm using Pulumi through SST v3, so s...
# aws
h
Hey there! (I'm using Pulumi through SST v3, so syntax might be a bit different, sorry about that.) I'm trying to deploy a Bedrock Agent, with an alias, https://www.pulumi.com/registry/packages/aws/api-docs/bedrock/agentagentalias/#aws-bedrock-agentagentalias But I can't get the version to increase. Documentations says that we If I don't provide a routing for versions, a new one will be created. (similar to what is done in the Console). I ended up doing something like this:
Copy code
const 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?