Hi,
I’m just getting familiar with Harness. I have managed to get going with a basic workflow that provisions an ECS Fargate service. The end result being that I can run one-off executions of the workflow to generate ‘rolling’ deployments to the ECS service.
I’m wondering however, if there are supported patterns within Harness for workflows that create deployments (in my case, ECS services) in a stateless/detached way? Meaning, whenever I run the workflow, a brand-new ‘instance’ of the service is created, rather than a replacement/rolling update made against the service that was created from the previous workflow run.
Current behavior:
- Run workflow for the very first time
- ECS service is created and containers are started
- Run workflow for the second time
- Previously created service is scaled down to 0 containers
- A new ECS service is created and containers are started.
Desired behavior:
- Run workflow for the very first time
- ECS service is created and containers are started
- Run workflow for the second time
- A brand-new ECS service is created, and the previously created service from the first run is untouched (no longer managed by the workflow)
- I now have two similar, but unique services running containers.
- Repeat many more times to create many more services.
I understand the primary function of a CD pipeline is to continuously deploy an application to a set of infrastructure (preferably with zero downtime). So, maybe this is an odd request/use case…