aws / amazon-ecs-cli

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.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CLI.html
Other
1.77k stars 302 forks source link

Create ecs-service from ecs-cli #1156

Open leonarac opened 1 year ago

leonarac commented 1 year ago

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

Version of the CLI ecs-cli version 1.21.0 Platform to run ECS CLI command : Windows

Config files

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)