Questions tagged [ecs-taskdefinition]
94 questions
0
votes
2 answers
how can I configure address of AWS ECS Fargate-hosted task to access it from VPC?
I'm trying to resolve simple issue. How can I specify connection string to AWS ECS fargate-hosted task, which will preserve task restarts?
I created a task definition, then started a task. Ok, I see the private IP address. But I have no guarantee…

Pavel Maltsev
- 59
- 1
- 8
0
votes
0 answers
Task stopped at: 10/04/2023, 15:58:45 UTC CgroupError: Agent could not create task's platform resources
I am having some trouble launching a container in my EC2 instance using ECS, I have played around with the task definition quite a lot and i'm still getting this error message when I try and run the task
This is the task definition
aws ecs…

Calibre2010
- 3,729
- 9
- 25
- 35
0
votes
1 answer
ECS task placement constraint during disaster recovery
As part of a recent DR exercise, an availability zone was simulated to have become unavailable. During the exercise, ECS tasks kept trying to start tasks in the "failed/unavailable" AZ.
Is it possible to prevent this situation from happening?
An…

acjca2
- 152
- 8
0
votes
1 answer
Setting up Selenium Grid on AWS Fargate
I'm trying to set up Selenium Grid on AWS fargate. I have two task definitions for the Hub and a Chrome Node. What I tried was,
First I deploy a hub task
manually add the private IP of the hub to the environment variable (SE_EVENT_BUS_HOST) of the…

isuranger
- 15
- 3
0
votes
1 answer
Cannot get response from deployed AWS Fargate?
Okay, I've followed the docs on How to create Task Definition using AWS console. I also created a cluster before creating Task Definition. Task (i.e. the container) is running using provided image URI which is on ECR. I can see logs nicely on…

Wrapper
- 794
- 10
- 25
0
votes
1 answer
AWS ECS Task Definition: How do I reference an environment variable in another environment variable?
I would like to be able to define environment variables in AWS ECS task definition like below:
TEST_USER: admin
TEST_PATH: /home/$TEST_USER/workspace
When I echo TEST_PATH:
Actual Value = /home/**$TEST_USER**/workspace
Expected Value =…

ariabele
- 355
- 1
- 4
- 9
0
votes
1 answer
Migrating on-premises Python ETL scripts that feed a Splunk Forwarder from a syslog box to AWS?
I've been asked to migrate on-premises Python ETL scripts that live on a syslog box over to AWS. These scripts run as cron-jobs and output logs that a Splunk Forwarder parses and sends to our Splunk instance for indexing.
My initial idea was to…

Pierogi
- 3
- 2
0
votes
1 answer
How to access Secret Manager secrets with ECS task?
Im using ECS with Fargate and trying to access my Secret Manager secrets, but when I spin up my task, they just arent there.
Since the secret is a list of secret variables, will it be evaluated as if it was a .env file?
What I'm missing ?
Im trying…

Sasquatch
- 87
- 1
- 2
- 7
0
votes
1 answer
i cant read the env variables on my ecs task
i have this code on my webpack.config.js file
const environment = process.env.ENVIRONMENT;
const uridb = `mongodb+srv://admin:admin@development-db.${process.env.URI}.mongodb.net/development?retryWrites=true&w=majority`
and inside my task definition…

randomuser
- 19
- 2
0
votes
1 answer
Deploy Hello World PHP application on AWS ECS Fargate
I am currently trying to deploy a basic Hello World PHP application on Fargate. I have created the following Dockerfile:
FROM php:8.0-apache
ENV SRC_DIR /var/www/html
RUN mkdir -p $SRC_DIR
COPY hello.php $SRC_DIR
EXPOSE 80
The image then gets…

Dave Michaels
- 847
- 1
- 19
- 51
0
votes
0 answers
AWS ECS Fargate Container Failure
Issue:
I am deploying ECS Fargate using Terraform. When I deploy everything goes great, but then the task fails saying "Essential container in task exited". I expanded the task and it says exit code 134. I have tried upping the CPU and Memory, and…

anothernewbiecoder
- 65
- 4
0
votes
0 answers
Error: Invalid type for parameter, json, in aws cli command
I am creating a task-definition using aws cli that I am running in a Windows batch-file, and have to input both containerPort and Hostport:
set name=task_definition_1
set ecs_role_arn=arn:aws:iam::913879294690:role/ecsTaskExecutionRole
set…

ardito.bryan
- 429
- 9
- 22
0
votes
1 answer
AWS Deploy to multiple ecs in CICD using CodePipeline
I want to configure the CICD using AWS CodePipeline but I want to deploy in multiple environments. How to do that?
Source is same, codebuild can also be same I think, please correct if I am wrong. The difference comes in deploy stage. I want to…

Abdulkarim Ahmed
- 13
- 5
0
votes
1 answer
Run a task on Fargate on demand from Github Action
I have a specific script that host some important configurations. The script basically generates a record structure on my documentDB.
This particular script is hosted on an independent repository on Github. I want to create a task when the code is…

fingerprints
- 2,751
- 1
- 25
- 45
0
votes
1 answer
Manage image version in ECS task definition
I saw the post How to manage versions of docker image in AWS ECS? and didn’t get a good answer for the question.
In case of updating container image version (for example , from alpine:1.0.0 to alpine 1.0.1)
What is the best practice to update the…

LiorKesten
- 23
- 5