Create ecs service from ecs-cli

0

Hi, I am deploying a service with the ecs-cli console. from my local console the service is deployed perfectly, I integrated the same command but from a pipeline in azure devops but for some reason the task-role remains empty I don't know what could be happening.

ecs-params.yml
version: 1
task_definition:
  ecs_network_mode: bridge
  task_role_arn: arn:aws:iam::xxxxxx:role/analitica-test-prescriptiva-ecs-role
  task_execution_role: arn:aws:iam::xxxxxxx:role/analitica-test-prescriptiva-ecs-role
  services:
    task_auth:
      cpu_shares: 0
      mem_reservation: 134217728
docker-compose.yml
version: '3'
services:
  task_core:
    image: <URL_IMAGE>
    ports:
      - "8001:8001"
    logging:
      driver: awslogs
      options:
        awslogs-group: /ecs/core_service
        awslogs-region: us-east-1
        awslogs-stream-prefix: ecs
ecs-cli compose --project-name testecs --file docker-compose.yml  service up --task-role-arn arn:aws:iam::xxxxxxx:role/analitica-test-prescriptiva-ecs-role --target-group-arn  arn:aws:elasticloadbalancing:us-east-1:xxxxxxxxxx:targetgroup/xxxxxxxxx --deployment-max-percent 200 --deployment-min-healthy-percent 100  --disable-ecs-managed-tags  --health-check-grace-period 0  --scheduling-strategy REPLICA  --container-name task_auth --container-port 8001  --role arn:aws:iam::xxxxxxxxx:role/analitica-test-prescriptiva-ecs-role --cluster analitica-test-prescriptiva-ecs

Enter image description here

leo
posta un anno fa77 visualizzazioni
Nessuna risposta

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande