Questions tagged [ecs-taskdefinition]
94 questions
9
votes
1 answer
Amazon ECS with GitHub Actions Stuck on Deploying ECS Task Definition
I am using the Amazon ECS "Deploy Task Definition" Action for GitHub Actions template to deploy my app. It sometimes get stuck on this step:
Deploy Amazon ECS task definition
It can get stuck for a long time, between 30 - 60 minutes, before…

traderjosh
- 321
- 5
- 16
6
votes
1 answer
Properties validation failed with message extraneous key is not permitted
I am getting the following error
Properties validation failed for resource mytaskdefinition with message: #/ContainerDefinitions/0: extraneous key [linuxParameters] is not permitted
Per…

wonton
- 7,568
- 9
- 56
- 93
6
votes
5 answers
How to put multiline commands in ECS Task definition
I am trying to run a django application inside of a docker container (ECS - Fargate)
However, I am having trouble figuring out how to run multiple commands in the Command section of a task definition, currently it is configured like this
Howevery…

Malik Bagwala
- 2,695
- 7
- 23
- 38
5
votes
2 answers
Passing a custom conf file to ECS task definition
Actually I have a simple use case, where I have to pass a custom config file in my ECS task definition. Example- Let's suppose I want to run Nginx as a service in ECS cluster and now I have to pass my custom nginx.conf to ECS task definition. I am…

Sanket Singh
- 585
- 1
- 6
- 11
4
votes
1 answer
Is it possible to assume a role from a running task in ECS?
I'm looking for an example of how to assume a role from within a running application within ECS.
I have a role setup, and I've added the roleARN to the task definition, using the setup here:…

fuzzi
- 1,967
- 9
- 46
- 90
3
votes
1 answer
Disable Core File Dumps on Docker Image/Container Hosted on AWS ECS/Fargate
My docker container runs a python app (backend API) that allows users upload various documents, PDF's mostly. so i think due to the pdf/file(s) upload, the container keeps creating core dump files: shown below
screenshot_coredump
This slows down the…

h4nz0x
- 33
- 3
3
votes
1 answer
Unable to register task definition with ephemeralStorage parameter in ECS Fargate
I wanted to spin tasks in ECS on Fargate with storage bigger than the default 21GB.
First I created a task definition from the portal without ephemeralStorage
After verifying the task runs I tried registering a new version from the cli with added…

Rohini
- 91
- 2
- 8
3
votes
3 answers
AWS ECS Task definition update
I'm setting up new services in ECS and have updated my task definition many times. When I do so, I need to edit the correspondent service and update the version to the latest.
Is there a way to automatically update an AWS service with the latest…

Shams Larbi
- 151
- 2
- 5
3
votes
1 answer
How to escape comma in ECS task definition command
I have docker image and command:
celery -A bits.payment_tracking.app:app worker -l debug -Q celery,reports --concurrency 3
It works perfectly in docker and docker-compose. But it doesn't work in AWS ECS task definition because ECS require to define…

user2076376
- 43
- 3
3
votes
1 answer
Terraform - Creating elastic container service with efs file system: check that your file system ID is correct
For persisting container data I want to use an EFS with my docker containers. The launch type for the ECS task is fargate. I get the following error when launching the task:
ResourceInitializationError: failed to invoke EFS utils commands to set up…

Matthias Herrmann
- 2,650
- 5
- 32
- 66
3
votes
0 answers
How to see Task Definition history for ECS Service
Is there a way to see the history of task definitions for an ECS service? It is easy to see the current task definition for the service as well as the current task definition for the tasks. But I can't see a way to see what the previous task…

dontangg
- 4,729
- 1
- 26
- 38
3
votes
1 answer
Log driver awslogs requires options: awslogs-region, awslogs-group
I have a json file with my AWS ECS Task definition like:
[
{
"name": "my-name",
"image": "url",
"cpu": 2,
"dnsSearchDomains": null,
"network_configuration":"awsvpc",
"entryPoint": null,
"portMappings":…

mrc
- 2,845
- 8
- 39
- 73
3
votes
1 answer
running celery tasks and celery beat in ECS with Django
I'm using ECS for the first time. I have dockerized my Django 2.2 application and using ECS and uwsgi to run the Django application in production.
While in the development environment, I had to run three commands to run Django server, celery and…

Anuj TBE
- 9,198
- 27
- 136
- 285
2
votes
2 answers
Deploy ecs service with two containers using github actions
I have a dotnet webapi and nginx defined across two containers which are both used by one task definition to provide one service. It all works fine in both ECS and Docker Desktop.
My problem is how to deploy it using github actions. I have plenty…

Mike
- 2,120
- 1
- 23
- 40
2
votes
2 answers
AWS CDK ECS Task Definition Without Task Role
In AWS CDK v2 the ECS TaskDefinition L2 construct has an optional property TaskRole if not specified CDK default behavior is to create a task role. However I do not want a task role set for this resource, it is not actually required in AWS - the…

Trevor Griffiths
- 383
- 3
- 12