Questions tagged [amazon-ecs]

Amazon Elastic Container Service (ECS) is a highly scalable, high performance container management service that supports Docker containers and allows you to easily run distributed applications on a managed cluster of Amazon EC2 instances.

1
vote
0answers
16 views

How to enable security with Confluent Schema Registry Docker Image?

I am trying to deploy the Confluent Schema Registry into our internal AWS infrastructure (ECS) so that it can be available as a REST API. The complete image is already available from Confluent at: ...
0
votes
1answer
5 views

Why am I getting ClusterNotFoundException The referenced cluster was inactive?

Trying to use ecs-cli and getting referenced cluster was inactive? I don't see where I specify a cluster? aws ecs create-cluster --region us-west-2 --cluster burrfg { "cluster": { "...
0
votes
1answer
13 views

ECS Error: “The closest matching container-instance is missing an attribute required by your task”

I have created a ECS Service, which is not able to run any tasks in the EC2 containers. I keep getting this message under the "Events" tab for Service. service QA-SVC was unable to place a task ...
0
votes
0answers
21 views

ECS task shuts down before all containers complete. How to prevent that?

I am using dockerized python code which does some processing and then completes. Currently hosted on ECS with Fargate. The problem is, when I include more than one container in a task, it seems that ...
0
votes
0answers
19 views

ECS cluster not properly distributing Tasks across two EC2 instances

I have a ECS Cluster with 5 services. Each service has one task each. I have two EC2 instances. The /etc/ecs/ecs.config file in each EC2 instance has the following entry. ECS_CLUSTER=qa-cluster ...
0
votes
0answers
10 views

AWS ECS task can't access outbound

I created docker image that based on ubuntu:18.04 Maybe I think ECS task cannot access to outbound. When I execute apt-get update, it throw errors. root@ip-172-31-14-71:~# apt-get install -y wget ...
0
votes
1answer
15 views

AWS NLB to ECS Cluster failing health check

I've configured a Network Load Balancer to route TCP traffic to an ECS cluster over port 80 The ECS cluster is running an ASP.NET Core 2.2 API task in Fargate configuration. The base route for the ...
0
votes
0answers
18 views

Do we have to always leave out unused memory in the Docker Host?

When setting up docker containers on a host, we usually leave some memory. In our specific use case, we leave around 400 MB untouched in our ECS EC2 instances. Our thinking was: maybe the native ...
0
votes
0answers
14 views

AWS ECS Continuous Deployment issue with CodePipeline

While deploying ECS using codepipeline like specified in aws official document, two docker image is pushing into ECR. One image contain both Commit id and latest tag and other image is untagged like ...
0
votes
0answers
11 views

Sleuth can't send traces to zipkin. Exportable always false

When i run my spring boot application locally i always have trace information with exportable information = true [my-service-v1,d074fc20fbfe0615,d074fc20fbfe0615,true] but when app running on AWS ...
1
vote
2answers
29 views

How to diagnose ECS Fargate task failing to start?

I'm trying to launch/run a Dockerfile on AWS using their ECS service. I can run my docker image locally just fine, but it's failing on the Fargate launch type. I've uploaded my Docker image to ECR, ...
0
votes
1answer
45 views

Get Host Public IP through Header in Python

I have a service host on Amazon ECS. It also have load balancer and CloudFront in front of my ECS, below picture is their architecture: When my service is running, it will need it's own public IP ...
0
votes
1answer
24 views

ECS Service for listening from SQS

I am creating a service on ECS which just listens from SQS and do some processing. Its a long running poller. For this kind of service, I don't need a Network Load Balancer, right? For ECS with HTTP ...
1
vote
0answers
28 views

AWS Fargate container authentication configuration

What would be the appropriate way to configure infrastructure independent parameters inside Docker container inside ECS? Let's say there's an API that needs to be connected with external sources (DB ...
0
votes
0answers
17 views

EC2 on ECS is not select in SSM

I want to execute django command ($python manage.py foo) on ecs task (ec2). I do not want to use ssh because production server. I wanted to use AWS Systems Manager Run Command or Session manager. I ...
1
vote
2answers
35 views

Running multiple ECS tasks based on same task definition but with different environment variables

I have a task to process large amount of data, so data is batched into lots of parts. I have written the task definition for this type of work but now I know only how to set up them manually via ...
0
votes
1answer
36 views

How to verify file download on docker containers without volumes?

I am trying to set up an automation test suit using selenium-grid,docker containers, jenkins and aws-ecs. The selenium-grid will be setup using aws-ecs. The automation tests will be executed as part ...
0
votes
1answer
31 views

The missing piece of the puzzle: how to run Rails C on an AWS ECS Fargate environment

Setting up a Rails app on AWS Fargate has been somewhat of a struggle, but the more I tried, the more I learned. I now have multiple tasks running multiple parts of my environment (websever, worker ...
0
votes
0answers
39 views

agent connected is automatically getting false

I am using EC2 Linux + Networking type ecs cluster , there are many ec2 instances , in some of them agent connected is getting false and number of container in that particular instance is also 0 , i ...
0
votes
0answers
28 views

What are the succes/failure conditions of boto3's ECS waiters?

Boto3 has 4 ECS waiters, ServicesStable, ServicesStopped, TasksRunning, and TasksStopped. The documentation, however, doesn't specify what the actual success and failure conditions for those waiters ...
0
votes
0answers
10 views

Steps to setup Eclipse che on Amazon ECS

I am trying to create an ECS container for eclipse che. Can you please help with the steps to do the same. i am able to setup Che on EC2 but not able to do the same on ECS
0
votes
1answer
28 views

Nginx internal dns resolve issue

I have nginx container in AWS that does reverse proxy for my website e.g. https://example.com. I have backend services that automatically register in local DNS - aws.local (this is done by AWS ECS ...
0
votes
0answers
20 views

How to fix 'Error creating launch configuration: ValidationError'?

I am setting up AWS ECS cluster using Terraform and the code executes fine on us-east-1 region. However when the same code is executed on ap-southeast-1 region, it throws a validation error. Tried ...
0
votes
1answer
22 views

AWS ECS private namespace list-instances remain unhealthy

i have a private namespace with a service im using for ECS service discovery. The service is created like so aws servicediscovery create-service --name elixir --dns-config 'NamespaceId="ns-XXXXX",...
1
vote
0answers
37 views

Possible to set up SSL/HTTPS on an AWS ECS container instance directly?

Is it possible to set up SSL/HTTPS on an ECS container instance (an EC2 instance registered to a cluster) directly, without using an Elastic Load Balancer (ELB)? A container instance is assigned a ...
0
votes
0answers
15 views

Merge two separate Angular project to one URL on apache server

I have two different projects in Angular (one is in version 6, other in 7) and each project has own routing module. I must merge them into one domain url. To be clear I must do in that way: my-...
0
votes
1answer
19 views

How to get namespace details for ecs

I want to print namespaces for my ecs-client. When I am using print(client.user_info.whoami()) I am getting the output. But when I am executing the below code I am getting attribute error. from ...
0
votes
1answer
26 views

ECS - task fails to start but container looks fine. Dosn't show error in logs

I am completely new to AWS and trying this for a cloud assignment. I created a ECS cluster and tried adding both fargate and EC2 tasks with a container. My task fails to start on creation itself and ...
0
votes
1answer
28 views

Two subdomain Mapping to one Load Balancer DNS - DNS Violation

So I have two ECS Cluster in front of which I have an Application Load Balancer, I am using host-based routing to have 2 URL point to 2 different target group associated with the same load balancer. ...
0
votes
1answer
23 views

how to update AWS ECS Container Agent on Fargate launch type instances

I am trying to configure AWS ECS using awsvpc mode with an IAM role to use specifically for tasks. Our ECS instances are of fargate launch types. After specifying a Task IAM role in the task ...
3
votes
1answer
56 views

How does “latest” tag work in an ECS task definition and container instances pulling from ECR?

I'm having problems using latest tag in an ECR task definition, where image parameter has value like XXXXXXXXXXXX.dkr.ecr.us-east-1.amazonaws.com/reponame/web:latest. I'm expecting this task ...
1
vote
0answers
32 views

Why does AWS ECS have a limit of 10240 CPU units?

I have a script that uses 60 cores. So when I run it on a c518XLarge EC2, it uses most of the 72 cores (e.g. if I run top I see numbers around 90%). When I created a docker job on AWS ECS, it only ...
1
vote
0answers
20 views

Adding Cloudwatch Logging to CircleCI Container Build

I am attempting to set up a pipeline where a simple website is built and then deployed to AWS ECS - Fargate using CircleCI. Currently, the docker image builds, the image is stored in ECR, and then the ...
1
vote
0answers
59 views

How do I run an apache spark job using AWS ECS Fargate, not EMR/EC2?

AWS Elastic MapReduce is capable of a lot, but it has some rough edges that I'd like to sidestep for some fairly inexpensive computation I'd like to do in Apache Spark. Specifically, I'd like to see ...
1
vote
0answers
37 views

CodeDeploy Error: “The revision size is too large. Its maximum size is 51200B.”

I'm trying to set up a deployment process as follows: Travis-CI.com grabs the codebase (NodeJS), builds and tests it, uploads it to S3 as a zip and then kicks off a CodeDeploy deployment (ECS). Here ...
0
votes
0answers
15 views

AWS Spot Fleet Request Error – “Spot bid price is less than Spot market price $-1.0000” despite no bid set

I'm configuring a Spot Fleet Request in AWS and am receiving an error because my bid price is supposedly lower than the market rate. Thing is, I have no bid set. I should simply be taking the current ...
0
votes
1answer
23 views

automatically scale down aws ecs ec2 instance at night

My microservices are deployed in aws ecs ec2 instance. I have a development and live cluster. I would like to know if we can automatically bring down the desired count of cluster size to zero by any ...
0
votes
0answers
42 views

Pulling public images from Dockerhub in ECS Fargate

When I configure my taskdefintion on my ECS Fargate cluster to pull nginx:latest it fails with STOPPED (CannotPullContainerError: Error response from daemon) I fail to understand what to put into ...
1
vote
1answer
15 views

Is it possible for an autoscaling group scale based on CPUReservation for instances within that autoscaling group

I have an ECS cluster that is composed of multiple autoscaling groups. I'd like to autoscale based on CPUReservations, but so far I've only found how to autoscale based on the CPUReservations for the ...
0
votes
1answer
34 views

AWS ECS Fargate - Task Not Running

I followed this AWS Tutorial on setting up a task on AWS ECS Fargate https://docs.aws.amazon.com/AmazonECS/latest/userguide/ECS_AWSCLI_Fargate.html I have an image in ECR, I have setup the Cluster ...
1
vote
0answers
52 views

AWS batch Fargate ECS container has no internet connectivity in public subnet

I have deployed an AWS batch job which creates an ECS Fargate task in the background. This is all deployed in a public subnet with internet access. I have verified that running the docker container in ...
0
votes
1answer
22 views

“start ecs” does not work on arm64 based instance a1.large

I am in the process of migrating our containers from m5.large instances to a1.large instances in our production ecs cluster. But on this type of instance, when the user data script tries the start ...
-1
votes
2answers
61 views

Do I need to create the SQS in the same VPC as the ECS is in?

I have a ECS cluster inside the VPC. ECS have to read from a SQS. So, do I need to create SQS in the same VPC for that to communicate? Also, if say, I wanted to communicate outside VPC, how can I do ...
0
votes
1answer
20 views

Advantages of creating ECS cluster inside a VPC

What are the advantages of creating ECS cluster inside a VPC? I see that in the console page, it asks for whether one wants to create the ECS cluster inside the VPC or not?
0
votes
1answer
33 views

How to create ECS cluster via CLI with custom AMI image?

I'm aware that there are similar question posted here, but none of them address this specific issue. How to create an ECS cluster via CLI tools, aws-cli and/or ecs-cli, with using your own custom AMI ...
0
votes
1answer
34 views

describe-task-definition not returning hostname value

I have the need to find the hostname of my ECS task via the CLI, which according to the Amazon documentation should be available via the CLI: https://docs.aws.amazon.com/cli/latest/reference/ecs/...
0
votes
1answer
38 views

AWS Using ECS-Optimized AMI with Docker Containers in ECS

I have used an extensive amount of time building the kind of deployment setup I'm going to describe next. I've gone through most of the documentation on ECS and documented an exhaustive list of ...
0
votes
0answers
34 views

AWS Application Load Balancer Public Url not working

Below is my configuration: I have created an ECS cluster with maximum number of task = 1 and with number of ec2.micro instance = 1 and 1 service. I have configured 1 target group listening to port 80 ...
1
vote
0answers
38 views

Deploying Dockerized SpringBoot Microservices with Eureka to AWS Fargate

I have a couple of dockerized microservices that register with Eureka & works on my local env with Docker Compose. The same when deployed to AWS Fargate via its CLI (using the same Compose file), ...
0
votes
1answer
45 views

boto3 can't connect to S3 from Docker container running in AWS batch

I am attempting to launch a Docker container stored in ECR as an AWS batch job. The entrypoint python script of this container attempts to connect to S3 and download a file. I have attached a role ...

http://mssss.yulina-kosm.ru