Skip to main content

Traffic shift step

Last updated on

Traffic shift step

The traffic shift step routes a percentage of traffic to the revision produced by the deploy step. Add a step for each stage of the canary, for example 10 percent, 25 percent, 50 percent, and 100 percent.

The step type is ShiftAwsAgentCoreTraffic. This step requires an AgentCore Gateway on the infrastructure definition, and without a gateway the step rejects with AGENT.AWS.GATEWAY_NOT_CONFIGURED. Configure the following fields:

  • Container Registry: A Harness connector for the registry that hosts the plugin image.
  • Image: The traffic shift plugin image, harness/aws-agentcore-plugin:1.0.0-linux-amd64.
  • Target Revision ID: The revision produced by the deploy step, <+steps.Deploy_Aws_Agent_Core_Revision.agentDeployment.revisionId>.
  • Weight (%): The percentage of traffic to route to the target revision for this shift.
Shift AWS Agent Core Traffic step parameters showing image, target revision ID, and weight