Попытка использовать ecs-cli и получение ссылочного кластера было неактивным?
Не вижу, где я указываю кластер?
aws ecs create-cluster --region us-west-2 --cluster burrfg
{
"cluster": {
"status": "ACTIVE",
"clusterName": "burrfg",
"registeredContainerInstancesCount": 0,
"pendingTasksCount": 0,
"runningTasksCount": 0,
"activeServicesCount": 0,
"clusterArn": "arn:aws:ecs:us-west-2:5533219:cluster/burrfg"
}
}
ecs-cli compose --file docker-compose.yml service up
WARN[0000] Skipping unsupported YAML option for service... option name=expose service name=burrfg
INFO[0001] Using ECS task definition TaskDefinition="ubuntudock:3"
ERRO[0001] Error creating service error="ClusterNotFoundException: The referenced cluster was inactive.\n\tstatus code: 400, request id: 28eab6b7-7eb2-11e9-be1a-633df2a55bcb" service=ubuntudock
INFO[0001] Created an ECS service service=ubuntudock taskDefinition="ubuntudock:3"
docker-compose:
version: '3'
services:
burrfg:
image: burrfg
expose:
- "8080"
ports:
- "0.0.0.0:8080:8080"
- "0.0.0.0:8080:8080/udp"
environment:
- NODE_ENV=development
- PORT=8080
command:
sh -c 'npm i && node app.js'
echo 'ready'