Questions tagged [ecs-taskdefinition]
94 questions
0
votes
0 answers
Terraform showing as change even if there is no change in terraform template files
I am using terraform version Terraform v0.11.13.
I am using terraform for AWS cloud, I have some template files which stores environment variables of my application.
I am using AWS ECS and created a ECS Task definition and ECS service and referenced…

Bala krishna
- 519
- 1
- 10
- 24
0
votes
1 answer
How to access the apache container of a task on AWS ECS?
I am setting up an infrastructure to deploy my application on AWS. I am using ECS service because I am trying to deploy a Docker-based application. So far I have created a task definition with two containers one for the apache and another one for…

Wai Yan Hein
- 13,651
- 35
- 180
- 372
0
votes
1 answer
Task definition in ECS unable to pull docket image from different AWS account
Account A has the ECR repo and ECS cluster is running on Account B, both the accounts are running inside a VPC. Task definition running inside Account B unable to pull the docket image from Account A, but when the task definition set to run on AWS…

chris
- 324
- 3
- 17
0
votes
1 answer
Unable to register task to ec2-instance
I am unable to deploy the container inside ec2 instance, when I ssh into the instance I see no container and have no clue why this is happening. I am using execution_role_arn in the task main.tf but unable to deply wordpress container to ec2…
user13870897
0
votes
1 answer
aws esc windows container pseudoTerminal cloudwatch ouput with strange chars
I am running AWS ESC (Windows EC2).
The container with -t runs well on my machine. The task definition has pseudoTerminal: true so that it will run -t on Windows EC2.
The output logged into CloudWatch log group has strange chars beside the correct…

beewest
- 4,486
- 7
- 36
- 63
0
votes
1 answer
Error while configuring Application loadbalancer in ECS using cloudformation
I am creating ECS cluster, service and task using cloudformation but it gives an error: Embedded stack arn:aws:cloudformation:us-east-2:0212657325299:stack/Root-Cluster-153O1DKDIKGLV/f1123c5c-d1f9-11ea-1216-2a3e4111fce2 was not successfully created:…
user13879829
0
votes
2 answers
How to format CloudFormation Task Definition command
Hi I currently have a Task Definition resource as such:
WebServerTaskDefinition:
Type: AWS::ECS::TaskDefinition
Properties:
Family: !Ref TaskDefinitionName
NetworkMode: awsvpc
RequiresCompatibilities:
- FARGATE
…

Huiting
- 1,368
- 7
- 24
0
votes
1 answer
ECS Fargate - Request Forwarding to Tasks
Can we setup any rule in which we forward our incoming request to specific task on which more memory and space available compare to another task.
For example: I have one service and there are 2 task attached to it. Request are coming to service and…

Asad Rao
- 3,190
- 1
- 22
- 26
0
votes
3 answers
Replace \r from json in shell
I have below JSON in a variable name TASK_DEFINTIION
It has a \r character at the end of "image": "700707367057.dkr.ecr.us-east-1.amazonaws.com/php-demo:feature-feature01\r" under containerDefinitions
I am using TASK_DEFINITION_AFTER= 'echo…

Rezoan
- 1,745
- 22
- 51
0
votes
1 answer
How to use IAM role to rotate the AWS secret keys in Spring boot Application for a task
I want to use an IAM role for using AWS services like S3, SNS etc in my task rather than specifying the secret keys of the user.
I have seen this article https://docs.aws.amazon.com/AmazonECS/latest/userguide/task-iam-roles.html but I am not sure…

Saurabh Tiwari
- 4,632
- 9
- 42
- 82
0
votes
1 answer
CodePipeline Task revisions are creating for ECS Fargate service, even i am not changing any task definitions
Is there any work around to not create tasks revision on every new deploy?
Or is there a way to remove older tasks revision from codePipeline after creating new one?
Thank you!

Husam Alrubaye
- 26
- 1
- 3
0
votes
1 answer
ecs_taskdefinition not loading environment variables
I'm trying to set a couple of environment variables in an ECS task, however these never seem to be passed (nor are any errors thrown).
Is this feature broken? I have tried numerous times but nothing seems to work.
Using:
Ansible v2.9.6
aws-cli…

user1016765
- 2,935
- 2
- 32
- 48
-1
votes
1 answer
My AWS Fargate Task auto stoped when adding command to task definition
This is my CDK code
const laravelCommand = [
"php",
"artisan",
"migrate"
]
taskDefinition.addContainer(`${projectName}-${imageName}-container-${env}`, {
containerName: `${projectName}-${imageName}-container-${env}`,
…

Nguyen Kokoro
- 3
- 1
-1
votes
1 answer
How to add new container in the already existed task definition using cloudformation?
I have setup CICD using Codepipeline and CodeBuild that deploy my application to ECS Fargate container. This is the setup for the frontend of my app.
For the backend I have another same CICD. But this time, I want to deploy my backend to the same…

Rehan Shakeel
- 3
- 3
-1
votes
1 answer
How can run cmd in aws_ecs_task_definition terraform aws
I need to run docker cmd in aws_ecs_task_definition I can directly run that in my local machine docker but unable to run that on task_defination
docker run -it --rm \
--name n8n \
-p 5678:5678 \
-e DB_TYPE=postgresdb \
-e…

user18163018
- 3
- 2