Roll Out a Service Update
A 3-step recipe with Amazon Fargate. We can help you get access.
Recipe · 3 steps
Roll Out a Service Update
with Amazon Fargate
Register a new task definition revision and roll it out to an existing service.
- Register a new revision of the task definition with the updated image.
- Update the service to the new task definition revision and desired count.
- Poll DescribeServices until the running count matches the desired count, re-entering while the rollout is still in progress.
What you'll need to have ready
- cluster: Name or ARN of the cluster hosting the service.
- service: Name or ARN of the service to update.
- family: Family name for the new task definition revision.
- containerName: Name of the container in the task definition.
- image: New container image URI to deploy.
- cpu: Task-level CPU units for Fargate.
- memory: Task-level memory in MiB for Fargate.
- executionRoleArn: ARN of the ECS task execution role.
- desiredCount: Desired number of tasks after the update.
For your developer
Arazzo workflow amazon-fargate:rolling-update-service, 3 operations: registerTaskDefinition → updateService → describeServices. Specs on APIs.io.