DevOps

AWS ECS Services: Deploying and Managing Tasks

Creating a Service

Console: ECS > Clusters > my-cluster > Create service > Fargate, task def: my-task, desired tasks: 1. CLI:

aws ecs create-service --cluster my-cluster --service-name my-service --task-definition my-task --desired-count 1 --launch-type FARGATE --network-configuration "awsvpcConfiguration={subnets=[subnet-id],securityGroups=[sg-id],assignPublicIp=ENABLED}"

Access via public IP (from task details).

Step 2: Run a Task

Update: 

aws ecs update-service --cluster my-cluster --service my-service --desired-count 2

Rollback: Via console revisions.

Delete: 

aws ecs delete-service --cluster my-cluster --service my-service --force

Ready to transform your business with our technology solutions? Contact Us  today to Leverage Our DevOps Expertise. 

Contact Us

0

Comment

153

Share

facebook
LinkedIn
Twitter
Mail
Devops

Related Center Of Excellence