> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/continuous-delivery/use-continuous-delivery/ai-agents-deployment/aws-agent-core/step-reference/traffic-shift-step.md).

# Traffic shift step

Reference for the Shift AWS Agent Core Traffic 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.

  <figure><img src="https://3694223630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy1JhZ4oKIppwY7d5AhPj%2Fuploads%2Fgit-blob-9847c5c810263c4a0fe13a12c4c4c8ac38ebf89c%2Fstep-shift-aws.png?alt=media" alt="Shift AWS Agent Core Traffic step parameters showing image, target revision ID, and weight"><figcaption><p>Click to view full size</p></figcaption></figure>

{% @harness-feedback/feedback %}
