> 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/new-experience/use-deployments/ecs-deployments/ecs-deployment-strategies/blank-canvas.md). Agents can also search and read this documentation through its [MCP server](https://developer.harness.io/~gitbook/mcp).

# ECS blank canvas

Build a custom ECS stage from scratch by adding individual ECS steps without a managed deployment strategy sequence.

The managed deployment strategies (basic, canary, rolling, blue-green swap, blue-green traffic shift) add opinionated step sequences to your stage. The blank canvas approach adds no steps by default. You compose only the steps you need, in the order that fits your workflow. There is no automatic rollback unless you add a rollback step to the rollback group yourself.

Use the blank canvas approach when:

* You want to run a standalone ECS task (for example, a migration or batch job) without deploying a service.
* You need a custom step sequence not covered by the managed strategies.
* You want full control over step ordering and do not want Harness to pre-populate a step sequence.

***

## What you will learn from this topic

* How to add individual ECS steps to a blank canvas stage.
* How to compose a custom execution sequence using the ECS step library.

***

## Before you begin

* **An ECS service:** Go to [ECS services](https://developer.harness.io/continuous-delivery/new-experience/use-deployments/ecs-deployments/ecs-services.md) to set up a service with a task definition and artifact source.
* **An ECS infrastructure definition:** Go to [ECS infrastructure](https://developer.harness.io/continuous-delivery/new-experience/use-deployments/ecs-deployments/ecs-infrastructure.md) to connect an AWS account and configure authentication.

***

## Example: run a standalone ECS task

The most common blank canvas use case is running a standalone ECS task using the ECS Run Task step. This runs a one-off task (such as a database migration) without deploying or modifying a long-running ECS service.

```yaml
pipeline:
  stages:
    - name: ecs-run-task
      id: ecs_run_task
      service:
        type: ecs
        items:
          - <service-id>
      environment:
        items:
          - id: <environment-id>
            deploy-to: all
      runtime: cloud
      steps:
        - name: ecs-run-task
          id: ecs_run_task_step
          deploy:
            uses: ecsRunTaskStep
            with:
              fetch_manifest_repo: true
              git_connector: my_git_connector
              git_branch: main
              manifest_file_path: ecs/task-definition.json
              task_def_mode: ECS Run Task Definition
              task_request_def: /path/to/task-request.json
              skip_steady_state: false
              steady_state_timeout: 5m
              connector: ${{infra.connectorRef}}
              region: ${{infra.region}}
              cluster: ${{infra.cluster}}
              log_level: info
      rollback: []
      on-failure:
        errors: all
        action: stage-rollback
```

{% hint style="info" %}
**ECS Run Task step uses `deploy:` not `template:`**

Unlike most ECS steps, the ECS Run Task step uses the `deploy:` key in the stage YAML. Go to [ECS Run Task step](https://developer.harness.io/continuous-delivery/new-experience/use-deployments/ecs-deployments/step-library/ecs-run-task.md) for the full field reference.
{% endhint %}

***

## Configure the ECS Run Task step

The ECS Run Task step is used in the example above. You must provide a task request definition before the pipeline can run.

| Field                       | Required | Description                                                                                                                            |
| --------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| **Task Definition Mode**    | Yes      | The task definition format.                                                                                                            |
| **Task Request Definition** | Yes      | Path to the task request definition file, which specifies the launch type, network configuration, overrides, and other run parameters. |

Go to [ECS Run Task step](https://developer.harness.io/continuous-delivery/new-experience/use-deployments/ecs-deployments/step-library/ecs-run-task.md) for the full field reference.

***

## How this approach works

When you select **Deploy without a strategy**, the **Execution** tab starts empty. To add steps:

1. In the stage editor, go to the **Execution** tab.
2. Click **Add Step** to open the step palette.
3. Select a step from the **ECS** category.
4. Configure the step fields and click **Apply Changes**.
5. To add a rollback step, scroll to the **Rollback** group and click **Add Step** there.

Go to [ECS step library](https://developer.harness.io/continuous-delivery/new-experience/use-deployments/ecs-deployments/step-library.md) for the full list of available steps and their fields, or go to [Step library YAML reference](https://developer.harness.io/continuous-delivery/new-experience/yaml-reference/step-library-yaml-reference.md) to copy a ready-to-paste YAML snippet for any step.

***

## Next steps

* Go to [ECS step library](https://developer.harness.io/continuous-delivery/new-experience/use-deployments/ecs-deployments/step-library.md) for the full list of available steps.
* Go to [Step library YAML reference](https://developer.harness.io/continuous-delivery/new-experience/yaml-reference/step-library-yaml-reference.md) for ready-to-paste YAML for every step across all deployment types.
* Go to [ECS basic deployment](https://developer.harness.io/continuous-delivery/new-experience/use-deployments/ecs-deployments/ecs-deployment-strategies/basic.md) for a managed strategy with a direct service replacement.
* Go to [ECS rolling deployment](https://developer.harness.io/continuous-delivery/new-experience/use-deployments/ecs-deployments/ecs-deployment-strategies/rolling.md) for a managed in-place update strategy.
