> 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/overview.md).

# AWS Agent Core overview

AWS Agent Core is the Amazon Bedrock AgentCore runtime, a secure, serverless runtime purpose-built for deploying and scaling AI agents. It runs each agent session in an isolated container, supports any framework such as CrewAI, LangGraph, LlamaIndex, Google ADK, OpenAI Agents SDK, and Strands Agents, and works with any foundation model, without infrastructure to manage. To understand the runtime itself, go to [What is Amazon Bedrock AgentCore](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/what-is-bedrock-agentcore.html) and [AgentCore Runtime](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/agents-tools-runtime.html).

Harness CD deploys an agent to AWS Agent Core as a first-class deployment type, using the same service, environment, infrastructure, and execution model that every other CD deployment uses.

{% hint style="info" %}
Agent deployments are behind the feature flag `CDS_AGENT_RUNTIME_DEPLOYMENT`. Contact [Harness Support](mailto:support@harness.io) to enable the feature.
{% endhint %}

***

### Why deploy through Harness <a href="#why-deploy-through-harness" id="why-deploy-through-harness"></a>

Teams often ship agents to AWS Agent Core with hand-written scripts or the AgentCore CLI, run outside their delivery pipeline. That approach has no shared deployment history, no approval gates, no canary rollout, and no rollback, and it cannot apply Harness RBAC, secrets management, or OPA policies to the agent workload.

Deploying through Harness closes that gap. The agent becomes a Harness entity, so it inherits governance, audit trails, canary traffic shifting, and rollback alongside your services on Kubernetes, ECS, Lambda, and every other supported platform. You point Harness at the agent image, describe the AWS target once, and every deployment runs through the same reviewed pipeline.

***

### What you will learn from this topic <a href="#what-you-will-learn-from-this-topic" id="what-you-will-learn-from-this-topic"></a>

This section covers everything you need to deploy an agent to AWS Agent Core through a Harness pipeline. You will learn how to:

* Register an agent service that points at your agent container image and execution role.
* Configure an environment with an AWS Agent Core infrastructure definition.
* Build a pipeline with a canary execution that deploys the agent and shifts traffic to the new revision.

***

### What is supported <a href="#what-is-supported" id="what-is-supported"></a>

This release deploys a pre-built container image to AWS Agent Core. The runtime pulls the agent image from Amazon ECR at deploy time. The canary deployment strategy is supported through the deploy and traffic-shift steps, with rollback that reverts traffic to the previous revision. Weighted traffic shifting requires an AgentCore Gateway on the infrastructure definition.

***

### Before you begin <a href="#before-you-begin" id="before-you-begin"></a>

* **Harness account with agent deployments enabled:** When the feature is enabled, **Agent Services** appears in the left navigation of the **Continuous Delivery & GitOps** module. For how to access or create a Harness account, go to [Getting started with Harness Platform](/harness-ai/new-to-harness-platform/get-started.md) to set up access.

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>CONTACT HARNESS SUPPORT:</strong></p><p>If <strong>Agent Services</strong> does not appear, contact your account administrator or <a href="mailto:support@harness.io">Harness Support</a> to enable <code>CDS_AGENT_RUNTIME_DEPLOYMENT</code>.</p></div>
* **An agent container image:** Your agent must be packaged as a container image in an Amazon ECR repository that AgentCore can pull from.
* **An AWS connector:** You need an AWS connector with permission to deploy to AgentCore. Go to [AWS connector settings reference](/harness-ai/use-harness-platform/connectors/cloud-providers/ref-cloud-providers/aws-connector-settings-reference.md) to create one.
* **A Kubernetes connector for the step group:** The deploy, traffic shift, and rollback steps run as container steps on a Kubernetes cluster, so you need a connector for the cluster that runs them.
* **Pipeline and entity permissions:** You need **View** and **Create/Edit** for [Services](/harness-ai/use-harness-platform/platform-access-control/permissions-reference.md) and [Environments](/harness-ai/use-harness-platform/platform-access-control/permissions-reference.md), and **View**, **Create/Edit**, and **Execute** for [Pipelines](/harness-ai/use-harness-platform/platform-access-control/permissions-reference.md#pipelines). To get these, an administrator must assign you a role that includes them. Go to [RBAC in Harness](/harness-ai/use-harness-platform/platform-access-control.md) to understand roles.

***

### Create a deploy stage <a href="#create-a-deploy-stage" id="create-a-deploy-stage"></a>

To deploy an agent, create a pipeline and add a **Deploy** stage. Under **Deployment Type**, select **AI Agent Services**. This deployment type unlocks the agent service, the AWS Agent Core infrastructure, and the agent deploy, traffic-shift, and rollback steps.

<figure><img src="/files/rZ9qbI0isgwAigvZXoQJ" alt="Stage deployment type selection with AI Agent Services selected"><figcaption><p>Click to view full size</p></figcaption></figure>

After you select the deployment type, configure the stage in three steps: register the agent service, set up the environment, and build the canary execution.

***

### Next steps <a href="#next-steps" id="next-steps"></a>

Configure the stage in the following order. Each page walks you through one part of the deployment.

* [**Agent service**](/continuous-delivery/use-continuous-delivery/ai-agents-deployment/aws-agent-core/agent-service.md)**:** Register the agent, choose AWS Agent Core as the deploy target, and point it at the agent container image and execution role. The agent service is what the stage deploys.
* [**Environment**](/continuous-delivery/use-continuous-delivery/ai-agents-deployment/aws-agent-core/environment.md)**:** Add an infrastructure definition that describes the AWS region, gateway, and networking the agent deploys to.
* [**Canary deployment**](/continuous-delivery/use-continuous-delivery/ai-agents-deployment/aws-agent-core/canary-deployment.md)**:** Build the pipeline execution that deploys the new revision and shifts traffic to it, with rollback if a step fails.
