capabilities.work

Deploy a Service

A 3-step recipe with Amazon Fargate. We can help you get access.

Recipe · 3 steps

Deploy a Service

Register a task definition and create a Fargate service, then confirm it reaches its desired count.

  1. Register the FARGATE-compatible task definition the service will run.
  2. Create the Fargate service that maintains the desired number of tasks.
  3. Poll DescribeServices until the running count reaches the desired count, re-entering this step while the service is still scaling up.
What you'll need to have ready
  • cluster: Name or ARN of the cluster to deploy into.
  • family: Family name for the task definition to register.
  • serviceName: Name for the new service.
  • containerName: Name of the container in the task definition.
  • image: Container image URI.
  • cpu: Task-level CPU units for Fargate.
  • memory: Task-level memory in MiB for Fargate.
  • executionRoleArn: ARN of the ECS task execution role.
  • desiredCount: Number of tasks the service should maintain.
  • subnets: Subnet IDs for the awsvpc network configuration.
  • securityGroups: Security group IDs for the awsvpc network configuration.
  • assignPublicIp: Whether to assign a public IP (ENABLED or DISABLED).
For your developer

Arazzo workflow amazon-fargate:deploy-service, 3 operations: registerTaskDefinition → createService → describeServices. Specs on APIs.io.