Deploy an Amazon Bedrock agent - Amazon Bedrock

Deploy an Amazon Bedrock agent

When you first create an Amazon Bedrock agent, you have a working draft version (DRAFT) and a test alias (TSTALIASID) that points to the working draft version. When you make changes to your agent, the changes apply to the working draft. You iterate on your working draft until you're satisfied with the behavior of your agent. Then, you can set up your agent for deployment and integration into your application by creating aliases of your agent.

To deploy your agent, you must create an alias. During alias creation, Amazon Bedrock creates a version of your agent automatically. The alias points to this newly created version. Alternatively, you can point the alias to a previously created version of your agent. Then, you configure your application to make API calls to that alias.

A version is a snapshot that preserves the resource as it exists at the time it was created. You can continue to modify the working draft and create new aliases (and consequently, versions) of your agent as necessary. In Amazon Bedrock, you create a new version of your agent by creating an alias that points to the new version by default. Amazon Bedrock creates versions in numerical order, starting from 1.

Versions are immutable because they act as a snapshot of your agent at the time you created it. To make updates to an agent in production, you must create a new version and set up your application to make calls to the alias that points to that version.

With aliases, you can switch efficiently between different versions of your agent without requiring the application to keep track of the version. For example, you can change an alias to point to a previous version of your agent if there are changes that you need to revert quickly.

To deploy your agent
  1. Create an alias and version of your agent. Select the tab corresponding to your method of choice and follow the steps.

    To create an alias (and optionally a new version)
    1. Sign in to the AWS Management Console, and open the Amazon Bedrock console at

    2. Select Agents from the left navigation pane. Then, choose an agent in the Agents section.

    3. In the Aliases section, choose Create.

    4. Enter a unique name for the alias and provide an optional description.

    5. Choose one of the following options:

      • To create a new version, choose Create a new version and to associate it to this alias.

      • To use an existing version, choose Use an existing version to associate this alias. From the dropdown menu, choose the version that you want to associate the alias to.

    6. (Optional) To select Provisioned Throughput for your alias, select the Provisioned Throughput (PT) button. If you have already created a Provisioned Throughput model, it will be available to select in the drop down menu Select Provisioned Throughput. If no Provision Throughput model has been created, the option to select a model will not be available. To create a Provisioned Throughput model, select Manage Provisioned Throughput. For more information, see Provisioned Throughput for Amazon Bedrock.

    7. Select Create alias. A success banner appears at the top.


    To create an alias for an agent, send a CreateAgentAlias request (see link for request and response formats and field details) with an Agents for Amazon Bedrock build-time endpoint. To create a new version and associate this alias with it, leave the routingConfiguration object unspecified.

    See code examples

  2. Deploy your agent by setting up your application to make an InvokeAgent request (see link for request and response formats and field details) with an Agents for Amazon Bedrock runtime endpoint. In the agentAliasId field, specify the ID of the alias pointing to the version of the agent that you want to use.

To learn how to manage versions and aliases of agents, select from the following topics.