The Amazon ECS CLI enables users to run their applications on ECS/Fargate using the Docker Compose file format, quickly provision resources, push/pull images in ECR, and monitor running applications on ECS/Fargate.
Hi all, I'm using ecs-cli to deploy a ecs-service currently I'm deploying as follows:
I have the files docker-compose.yml and ecs-params.yml and run the following command the service is created correctly in ecs, but for some reason the tasks that are deployed remain without a role assigned even though I am sending the --role flag and it exists in the aws environment
Description
specific command ecs-cli compose --project-name ecstestcli --file docker-compose.yml service up --target-group-arn arn:aws:elasticloadbalancing:us-east-1:xxxxxxxx:targetgroup/target-group/xxxxxxxx --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::xxxxxx:role/test-ecs-role --cluster test-ecs-cluster
Version of the CLI ecs-cli version 1.21.0
Platform to run ECS CLI command : Windows
Hi all, I'm using ecs-cli to deploy a ecs-service currently I'm deploying as follows:
I have the files docker-compose.yml and ecs-params.yml and run the following command the service is created correctly in ecs, but for some reason the tasks that are deployed remain without a role assigned even though I am sending the --role flag and it exists in the aws environment
Description
ecs-cli compose --project-name ecstestcli --file docker-compose.yml service up --target-group-arn arn:aws:elasticloadbalancing:us-east-1:xxxxxxxx:targetgroup/target-group/xxxxxxxx --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::xxxxxx:role/test-ecs-role --cluster test-ecs-cluster
Version of the CLI
ecs-cli version 1.21.0
Platform to run ECS CLI command : WindowsConfig files
docker-compose.yml
version: '3' services: task_auth: environment: AWS_API_VERSION: "2016-04-19" AWS_CONTAINER_CREDENTIALS_RELATIVE_URI: /creds COGNITO_AWS_ACCESS_KEY: xxxxxxxx COGNITO_AWS_SECRET_KEY: xxxxx COGNITO_CLIENT_ID: xxxxxxx COGNITO_POOL_ID: us-east-1_xxxxx COGNITO_REGION: us-east-1 ECS_CONTAINER_METADATA_URI: http://169.xxxxx/v3 EMAIL_SEND: mail@web.com PORT: "8000" FRONT_URL: https://web.com/ SES_AWS: "false" image:
ports:
ecs-params.yml
version: 1 task_definition: ecs_network_mode: bridge task_role_arn: arn:aws:iam::xxxxxx:role/test-ecs-role task_execution_role: arn:aws:iam::xxxxxx:role/test-ecs-role services: task_auth: cpu_shares: 0 mem_reservation: 134217728
Expected Behavior
Observed Behavior
, ![imagen](https://user-images.githubusercontent.com/103458283/221666850-44940b03-58f2-408e-8a54-d74782f6049d.png) ![imagen](https://user-images.githubusercontent.com/103458283/221668641-2160db0a-37dc-48b1-ab4e-657f8d96f0ba.png)