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.

0
votes
0answers
7 views

ECS Task definition by tag

we have automated creation of fargate services and task definitions from our CI system. Everything is named except task definitions, which just get a generated ID. We tag them with the ...
0
votes
1answer
16 views

Soft memory limit for AWS ECS task defined by docker-compose.yaml

Amazon provides ebs-cli compose command which can set up task from docker-compose.yaml But I am not able to declare memory limits (especially soft one) for such task. Deploy option is not supported. ...
0
votes
0answers
14 views

No of Services (end points) can Docker/ AWS ECS Container support

We have a single docker container (256 CPU units & 1GB RAM) which runs around 40+ services -java based application (controller endpoints). Will there be any problem in running on one container or ...
0
votes
0answers
21 views

Deploy AWS LAMBDA function in multiple account

Is it possible deploy aws lambda function in multiple account through jenkins container ECS
0
votes
0answers
9 views

Deploying Grafana using ECS/Fargate issues

I'm attempting to deploy the image grafana/grafana to aws using ECS fargate. The default port for the grafana container is 3000. I created an ALB listening on port 80 with a target group having port ...
0
votes
0answers
41 views

/var/run/docker.sock: connect: permission denied Jenkins slave on ecs cluster

I'm using the AWS EC2 plugin for Jenkins to spawn up Jenkins slaves when tasks are generated. Running into permission issues when trying to build docker inside docker container. I've looked at dozens ...
0
votes
0answers
32 views

Storing components in static classes viable?

I´m struggling with a custom implementation of an ECS in C#. I store my components in static classes like this: internal static class ComponentStorage<T> where T : struct, IComponent { ...
0
votes
0answers
19 views

Zero Downtime Deployment with ECS

I am trying to achieve a zero downtime continuous integration workflow with the use of AWS. I am using CodePipeline to first load my source code from GitHub, then, using CodeBuild, build and push a ...
0
votes
1answer
20 views

How to monitor Dockerized Nodejs application through NewRelic?

I am planning to run my Nodejs application on AWS ECS. How can I monitor Node application through NewRelic which is running in a container(ECS)? How can I integrate newrelic.jar in Dockerfile?
0
votes
0answers
21 views

AWS ECS: Invalid service in ARN (Service: AmazonECS; …)

Trying to create a ECS Service (on Fargate) with cloudformation but got error: Invalid service in ARN (Service: AmazonECS; Status Code: 400; Error Code: InvalidParameterException; Request ID: xxx)...
0
votes
0answers
28 views

ECS Rolling updates can cause 502 Bad Gateway

I've been testing the ECS's rolling updates in DAEMON mode and I'm not able to avoid occasional "502 Bad Gateway" responses. Here is what I did to test this which seems to point at a bug in the ...
0
votes
0answers
34 views

Dockerfile - Copying config files to appropriate container

I have two containers on my deployment: uwsgi and celery. There are also two supervisord .conf files, under /config/celery and /config/uwsgi. So I need to copy only the *.conf files under /config/...
0
votes
1answer
16 views

ECS task definition for spread not binpack

How do I set a task definition to balance containers on different nodes instead of filling up one first (binpack). I can set placement "constraints" in a task definition but I see no option for "...
0
votes
0answers
24 views

how to append a new container to a running task in AWS ECS?

I'm using AWS ECS to start containers to run automated tests and their number cannot be known beforehand, because they are triggered by different events. For some config reasons I have to start these ...
0
votes
0answers
27 views

Using Environment Variables for connecting to RDS mysql database from php YII application running on docker container

I am running few docker container on aws ecs, All running on php Yii application. the apps needs to connect to AWS RDS database. currently the databasename, host,username and password is hardcoded ...
0
votes
0answers
32 views

Creating an CloudWatch Event Rule for failed ECS tasks

I currently have an ECS task that fails from time to time, with different error codes. I would like to create a CloudWatch event rule that is triggered on such failures. I currently have the following ...
0
votes
1answer
44 views

Can't delete a private hosted zone in AWS Route53

I am unable to delete Private Hosted Zone from console and CLI. Please check below screen shot Its throwing following error The resource hostedzone/Z346QOK8DECBDU can only be managed through ...
0
votes
1answer
22 views

how long does ECS cache local images?

I have a really big image which takes a long time to pull When I start a task on an instance it takes like 15+ mins (i have 2 instances). When I start the task again it takes like 2 mins- because the ...
2
votes
1answer
43 views

RabbitMQ listener in docker/microservice

I have deployed a few microservice in aws ecs(via CI/CD through jenkins) Each task has its own service and task definition. Apache is running on the foreground and the docker will be deployed from ...
0
votes
1answer
18 views

How to send logs to Cloudwatch from a background process running in AWS Fargate containers?

I'm using Fargate. My container is running two processes. Celery worker in the background and Django in the foreground. The foreground process emits logs to stdout, hence AWS takes care of sending ...
0
votes
1answer
16 views

With AWS Elastic Beanstalk where should I store my application code?

As I containerized my app my plan was to build my docker image with my application files inside the image, and then update my image when my code changed. Now that I am digging into AWS Elastic ...
0
votes
2answers
33 views

Django running on an ECS task does not work. “Connection refused” or “No data response” when requesting the webapp

I have some problems running Django on an ECS task. I want to have a Django webapp running on an ECS task and accessible to the world. Here are the symptoms: When I run an ECS task using Django ...
0
votes
1answer
28 views

AWS CLI: ECS register-task-definition and the requires-compatabilies option

I'm trying to adapt my CircleCI config file to build my node.js app to a Docker image and deploy it to AWS ECS. I started with this config.yml file from ricktbaker and I'm trying to make it work on ...
1
vote
1answer
28 views

Splunk with ECS

I am having a problem with configuring Splunk to send logs on ECS Cluster. From the event tab in service, this error was there Problem Statement: unable to place a task because no container instance ...
1
vote
1answer
30 views

How can I update automatically an ECS service with latest docker image already deployed on ECR?

I have to update my ECS service with latest docker image deployed on ECR and without changing the public address. I tried to modify the service via the user interface by selecting force new deployment ...
1
vote
2answers
69 views

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

I'm using .NET Core WEBAPI and below Dockerfile FROM microsoft/dotnet:sdk AS build-env WORKDIR /app # Copy csproj and restore as distinct layers COPY *.csproj ./ RUN dotnet restore # Copy ...
0
votes
1answer
24 views

Deploying my ECR image to my ECS instance via aws cli

so far in my buildspec.yml file I can create a docker image and store it in the ECR repository (I am using codepipeline). My question is how do I deploy it to my ECS instance through the buildspec.yml ...
1
vote
1answer
79 views

How to get AWS ECS Region

I have my microservice running in AWS ECS, and I want to tell which region this service is running in. Do they have a meta data service for me get my microservice region?
0
votes
1answer
15 views

How to capture on-JVM-exit heap dumps without affecting the ECS service?

My JVM-based app runs on Amazon ECS. Under some conditions that I cannot reproduce on test environments it crashes with an OutOfMemoryError. I want to capture the JVM heap dump (using ...
0
votes
1answer
47 views

Aerokube Selenoid on AWS ECS

Has anyone been able to configure selenoid on aws ecs ? I am able to run the selenoid-ui container but the selenoid hub image keeps throwing an error regarding the browsers.json however I have not ...
0
votes
1answer
14 views

AWS Cloudwatch alarm watching ECS containers state

Let's say that I have ECS cluster with 10 containers running. I want to have Cloudwatch Alarm which trigger SNS toppic IF 5 of the containers changed there state in 5 minutes. What good approach can ...
0
votes
1answer
13 views

AWS ECS find out hosted/parent Task or TaskDefinition of a container

I have AWS container running in ECS. Is there a way we can get the host Task or TaskDefinition info from container code? My container is dotnet core API. So, I am looking for a way to read the hosted/...
0
votes
1answer
36 views

Best way to maintain Pulumi/Terraform state with automatic deployments?

On a merge to the master branch, a Jenkins job is kicked off to update an AWS Task Definition with a new Docker image with a new versioned tag. I'm trying to adopt IAC as much as possible, and this ...
0
votes
1answer
15 views

AWS ECS how to execute aws-ecs-tools-defaults.json file

In visual studio 2017, it generates aws-ecs-tools-defaults.json file after image is published first time to AWS ECS. I wonder is there any aws CLI or docker command to run this file. I know I do it ...
0
votes
0answers
14 views

Need to trigger script on ec2 if ecs task restarts

I have a cloudformation script that sets up an EC2 through AWS::AutoScaling::LaunchConfiguration. It then starts a docker container (ECS task) on this EC2 through AWS::ECS::TaskDefinition. I also have ...
0
votes
0answers
49 views

aws ecs ec2 continuous deployment with jenkins

I am using jenkins for continuous deployment from gitlab into aws ecs ec2 container instance. I am using jenkins file for this purpose. For registering the task definition on each push I have placed ...
0
votes
1answer
25 views

AWS ECS task with no essential containers

I have an application that runs as a group of containers in an ECS task. Each container processes records from a kinesis shard. If there are n-shards then n-containers will be part of this task. Each ...
0
votes
1answer
17 views

How can I set an ECS cluster status to ACTIVE

I've deleted the default cluster with aws console management and now I want to set it to ACTIVE on my EC2 instance. Below the output of aws ecs describe-clusters --cluster default { "...
0
votes
0answers
35 views

AWS ECS Network Mode awsvpc not sending mails

I have a dockerized container which sends out email using Centos7 sendmail. I want to deploy this script as scheduled task using FARGATE on AWS ECS. When I select the task type as Ec2 instance with ...
2
votes
0answers
32 views

Port mapping in Windows Server 2016 - Docker

I have been trying to setup Docker in Windows Server 2016 in an AWS instance to run an IIS program. From this question, Cannot access an IIS container from browser - Docker, IIS has been setup ...
2
votes
0answers
80 views

.NET Core high memory usage in Docker (AWS ECS Fargate)

Here is a description of the application. I have a console application that runs Hangfire. There are several jobs that are recurring. One job, in particular, parses several large XML files. I ...
0
votes
2answers
52 views

Task definition does not support launch_type FARGATE

I have a Fargate app running in AWS ECS, which I'm trying to update by the AWS CLI ( aws-cli/1.16.96 Python/2.7.15 Darwin/18.0.0 botocore/1.12.86 ). I've builded and pushed the image successfully, ...
0
votes
2answers
49 views

Running apache and cron in docker

I understood there should be only one process running on foreground in a docker container. Is there any chance of running both apache and cron together in foreground? A quick search says there is ...
0
votes
1answer
34 views

AWS Target group unable to detect ephemeral port of ECS

I am trying to create path based target groups with ECS with docker containers using terraform. We have set the host port as 0 for the container definition, which means that the host port is ...
0
votes
0answers
21 views

Amazon ECS no public IP available during service setup

I am new to Amazon ECS and trying to setup a docker service on ECS on a cluster of EC2 spot instances. The spot instances has public ip available but when I try to define a service in the cluster I ...
0
votes
0answers
26 views

aws s3 bucket policy without public access

I am hosting few api containers in aws ecs. one of the api (api.example.com) needs to upload images to the aws s3 bucket. Now the developers are using swagger after authenticating it via some token (...
0
votes
1answer
28 views

Starting NginX with my modified nginx.conf on ECS

I have an environment in AWS with an ECS cluster, an EFS source and some services running on this cluster. One of my services is the NginX web server which I use to serve our site and our services. ...
1
vote
1answer
30 views

Configuring Envoy to use SRV records generated by AWS ECS and Route53

I'm using AWS ECS to deploy multiple web services (via Docker images) that are behind an Envoy front proxy. Some of these docker images have multiple deployed instances. I'm currently using the ...
2
votes
2answers
49 views

How to avoid duplication in terraform when having multiple services in ECS which differ only in the command?

We create ECS services in Terraform by defining a template_file which populates a task definition JSON template with all needed variables. Then a aws_ecs_task_definition is created with the rendered ...
0
votes
1answer
28 views

Prometheus scraping from another machine

I have node exporter running on a docker container in Amazon ecs, and I want to be able to scrape metrics from a different machine in the same network running Prometheus (aka not locally). How do I ...

http://mssss.yulina-kosm.ru