How do i create a ecs cluster using aws cli?
-
Instead of using the high level ecs-cli commands, you can use the aws cli as well.
$ aws ecs create-cluster --cluster-name AppClus { "cluster": { "status": "ACTIVE", "statistics": [], "clusterName": "AppClus", "registeredContainerInstancesCount": 0, "pendingTasksCount": 0, "runningTasksCount": 0, "activeServicesCount": 0, "clusterArn": "arn:aws:ecs:eu-west-1:123456789012:cluster/AppClus" } }
List the ECS clusters.
$ aws ecs list-clusters { "clusterArns": [ "arn:aws:ecs:eu-west-1:123456789012:cluster/default" ] }
AWS uses the default cluster when just provisioning instances with the ecs agent preinstalled. AWS provide ECS optimised EC2 AMI's for various regions.
© Lightnetics 2024