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.

Amazon ECS eliminates the need for you to install, operate, and scale your own cluster management infrastructure. With simple API calls, you can launch and stop container-enabled applications, query the complete state of your cluster, and access many familiar features like security groups, Elastic Load Balancing, EBS volumes, and IAM roles. You can use Amazon ECS to schedule the placement of containers across your cluster based on your resource needs and availability requirements. You can also integrate your own scheduler or third-party schedulers to meet business or application specific requirements.

There is no additional charge for Amazon EC2 Container Service. You pay for AWS resources (e.g. EC2 instances or EBS volumes) you create to store and run your application.

Infrastructure Integration

Amazon EC2 can facilitate the dynamic spin up of server clusters while Kubernetes can be used as the container orchestration management layer which works well since these two tooling stacks are largely orthogonal.

Benefits

  • Cluster Management Made Easy
  • Flexible Scheduling
  • Performance at Scale
  • Security
  • Extensible

For more details click here

5065 questions
2
votes
2 answers

Communication between docker containers in aws ecs through rabbitmq

My team is developing an application which consist of 20 microservice, This will be deployed in aws ecs ec2 instance. I am planning to launch 3 aws ec2 instance in the cluster. Each microservice will have its on task definition and service. docker…
sandeep krishna
  • 415
  • 2
  • 9
  • 28
2
votes
2 answers

Prometheus: Add a label based on other labels

I've set up Prometheus to use the file sd from prometheus-ecs-discovery: scrape_configs: - job_name: ecs file_sd_configs: - files: - /prometheus/ecs_file_sd.yml This adds among other labels the task arn as a…
iGEL
  • 16,540
  • 11
  • 60
  • 74
2
votes
2 answers

Nodes are not joining in aws eks

I have launched cluster using aws eks successfully and applied aws-auth but nodes are not joining to cluster. I checked log message of a node and found this - Dec 4 08:09:02 ip-10-0-8-187 kubelet: E1204 08:09:02.760634 3542 reflector.go:205]…
2
votes
1 answer

How to troubleshoot logging to cloudwatch from docker in an ECS container?

I'm tearing my hair out over this. Here's my setup: ECS Container on an EC2 Instance that contains an ECS Task Definition that runs a Docker instance with a python script that logs to stderr I see a Cloudwatch log group fo the ECS Task get…
sshevlyagin
  • 1,310
  • 2
  • 16
  • 26
2
votes
0 answers

Trigger AWS Lambda Function when Docker image pushed to ECS

I want to run security scans on docker images which are pushed to ECS. Can I trigger this somehow from CloudWatch Events, or is there another method?
2
votes
0 answers

Why do I have docker pushed denied after login with boto ecr client?

I have the following code: token = boto3.Session().client('ecr').get_authorization_token() token = token['authorizationData'][0] username, password = b64decode(token['authorizationToken']).decode().split(':') Here I see username=AWS and a password.…
ClementWalter
  • 4,814
  • 1
  • 32
  • 54
2
votes
1 answer

Getting t msg="Container ****** failed to exit within 10 seconds of signal 15 - using the force" in docker log when deploying with ecs

Recently I have observed that kind of error when I deploy my micro services on ECS: time="2018-11-26T10:56:43.477751125Z" level=info msg="Container **** failed to exit within 10 seconds of signal 15 - using the force" I have checked the memory…
user2261869
  • 21
  • 1
  • 2
2
votes
1 answer

How to deploy Netfilex Eureka Server and Eureka Client with docker Network on AWS ECS cluster

I am migrating my spring cloud eureka application to AWS ECS and currently having some trouble doing so. I have an ECS cluster on AWS in which two EC2 services was created Eureka-server Eureka-client each service has a Task running on it.…
DJ_
  • 237
  • 1
  • 2
  • 8
2
votes
1 answer

unable to place a task because no container instance met all of its requirements

I'm using the latest ECS Agent v1.22.0 for Windows ECS cluster. I want to try out the new feature https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html?shortFooter=true but with the following failed error…
Fei
  • 455
  • 1
  • 5
  • 16
2
votes
2 answers

Random 502/503 error on Nginx running behind Docker (on ECS cluster + ALB)

So i have setup a laravel application and hosted on a docker which in turned hosted using AWS ECS Cluster running behind ALB. So far i have the application up and running as expected, everything runs just the way it is (e.g. Sessions are stored in…
Jeremy
  • 2,516
  • 8
  • 46
  • 80
2
votes
2 answers

Drone IO Publish to ECR from another account

I'm using the Drone.IO CI/CD software to build and publish an image to an ECR in another AWS account, in the same region EU-WEST-1. I have setup the IAM artefacts and it is connecting but failing on the last step. It seems that Drone is ignoring my…
Garreth
  • 1,057
  • 2
  • 9
  • 24
2
votes
0 answers

React Node Microservice app works locally but not once deployed to AWS ECS

I'm trying to deploy an application to AWS ECS. The application's backend is a microservice and the client side is a react app with server-side rendering. The backend is deployed in the private subnet in ECS with an internal load balancer. Same with…
thishandp7
  • 182
  • 1
  • 2
  • 14
2
votes
2 answers

Desired tasks count in ECS service during deployment

Let's say, I have a ECS service running. It is configured to run at minimum 2 tasks, desired count is 2 and maximum tasks count is 10. Minimum healthy percent is set at 100, max percent set to 150. The ECS service is managed using CloudFormation…
2
votes
1 answer

How can CodePipeline do migration db to RDS with ECS

I made CodePipeline will deploy container to ECS. And I`m trying to make migration task via Deploy step in CodePipeline. I can run one-off task manually from Task Definition. But CodePipeline cannot run one-off task. Any idea? I need other…
2
votes
2 answers

Security of AWS ALB DNS

I have set up the AWS ALB for the microservices on ECS, and set up an API gateway in front of AWS ALB for the public use. However, ALB has its own public DNS, will it be a security concern? If yes, any suggestion on it?
simonhb1990
  • 143
  • 3
  • 11