Questions tagged [ecs-taskdefinition]
94 questions
1
vote
0 answers
Fargate: how to stop task after job done?
I need to calculate the task on my Fargate cluster and after finishing calculating the task should be stopped or terminated to decrease payments.
The consequence of my actions:
One task always running on EC2 Cluster and checking DB to the new…

Igor-Potapov
- 43
- 2
- 9
1
vote
1 answer
Docker -v flag translated to AWS ECS Task Definition
I'm following the datadog guide here: https://docs.datadoghq.com/database_monitoring/setup_postgres/aurora/?tab=docker
which says to run this docker command:
docker run -e "DD_API_KEY=${DD_API_KEY}" \
-v…

Schalton
- 2,867
- 2
- 32
- 44
1
vote
1 answer
AWS Task Definition warning when enabled "Auto-configure CloudWatch Logs"
when I enable Auto-configure CloudWatch Logs a warning about Network mode appears, it says Your containers in the task will share an ENI using a common network stack. Port mappings can only specify container ports (any existing host port…

LuisEnMarroquin
- 1,609
- 1
- 14
- 26
1
vote
0 answers
Issues using aws ssm parameter for private repository authentication in task definition
So I am using ghcr as my container registry and having some images there. Trying to deploying those image using aws ecs and task definitions through terraform.
In task definition, I have specified the image url and repository credentials. To access…

jagguk
- 11
- 4
1
vote
0 answers
Port Mappings from environment variables in AWS ECS Task Definition
Is there a way to specify container port from environment variable in AWS ECS Task Definition?
This is in my task-definition.json which is used by Github Actions
"containerDefinitions": [
{
"portMappings": [
{
…

Abhigyan Singh
- 137
- 3
- 14
1
vote
3 answers
Multiple Tasks Definition on ECS Service using CloudFormation
Hi I'm newbie on CloudFormation AWS, and I'm working right now with a ECS Service with 1 task, but I would like to put more tasks using CloudFormation. However inside the properties on AWS ECS Service, there's one called Task Definition, and only…

Manuel Herrera
- 21
- 1
- 4
1
vote
1 answer
AWS SDK to runtask on fargate throwing error on container override command
I am developing an application using lambda and fargate AWS services. Base application is developed in NodeJS and docker image is created and push on AWS ECR to create ECS task.
Here, the fargate task is to be triggered using lambda function using…

user3664801
- 11
- 3
1
vote
1 answer
How to read an environment variable from AWS ECS task definition in Spring?
there, I have already an environment variable setup in ECS task definition as shown in the screenshot. And I was supposing that I could simply treat it as an regular env and read it like this in Spring:
@Value("${activeDirectoryPwd}")
private String…

JackOuttaBox
- 345
- 5
- 12
1
vote
0 answers
Ansible community.aws.ecs_taskdefinition fails with `AttributeError: 'str' object has no attribute 'get'`
I have the following Ansible setup with default configs:
ansible 2.10.3 config file = None
configured module search path = ['/Users/kagarlickij/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location =…

kagarlickij
- 7,327
- 10
- 36
- 71
1
vote
1 answer
Is it possible to share secrets among ECS Container Definitions in Cloud-formation?
I have requirement to create 5 Container definitions which have common environmental variables as secrets. But the count of them is around 50. So instead of duplicating these 50 secrets, is there a way I can create all these a single resource and…

Arjun Sreepad
- 155
- 2
- 9
1
vote
3 answers
ECS awslogs Log group not being created for Task
Here's part of my task definition:
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/main-frontend-production-php",
"awslogs-region": "us-west-1",
"awslogs-stream-prefix": "ecs",
…

Brian Jenkins
- 349
- 1
- 6
- 22
1
vote
1 answer
The best way to store GOOGLE_APPLICATION_CREDENTIALS json on AWS ECS
I have a GOOGLE_APPLICATION_CREDENTIALS json file for access to my bigquery.
Locally I set export GOOGLE_APPLICATION_CREDENTIALS=.json and all works fine.
What about my server on AWS?
I use docker and ECS with Task Definition and all…

Yura Bysaha
- 721
- 6
- 17
0
votes
0 answers
Is it possible to make an ecs ContainerDefinition reusable in cloudformation?
Currently I'm having an ECS TaskDefinition with one ContainerDefinition running in my ECS Cluster. This is all defined in an cloudformation .json file and working fine. Now I would like to add a sidecar pod to this application, which is running an…

belony
- 21
- 2
0
votes
1 answer
How can I create an entrypoint.sh for my AWS ECS Task Definition to use for a temporary development shell console for shell_plus?
I need to be able to spin up a shell in a task to take a look at my production database, but the task keeps dying. I need it to stay alive as long as I am using it + 10 minutes.
I have a service and task definition. I create the task and get the…

Cedric Holz
- 51
- 1
- 4
0
votes
0 answers
AWS ECS Task Definition Stuck on DELETE_IN_PROGRESS
I had an ECS cluster, service, task definitions, ECR repo, RDS database, security groups, and other EC2 services, and I managed to delete all except for a single task definition and the associated network and VPC services. I can't delete any network…

Martin
- 1
- 2