Questions tagged [aws-ecs]

Use this tag for questions related to Amazon Elastic Container Services (ECS), which is a highly scalable, high-performance container orchestration service that supports Docker containers and allows you to run and scale containerized applications on AWS.

Amazon Elastic Container Service (Amazon ECS) is a highly scalable, high-performance container orchestration service that supports Docker containers and allows you to easily run and scale containerized applications on AWS.

Amazon ECS eliminates the need for you to install and operate your own container orchestration software, manage and scale a cluster of virtual machines, or schedule containers on those virtual machines.

Infrastructure Integration Amazon ECS makes it easy to build performant, modern applications on AWS and features AWS Fargate so you can deploy and manage containers without having to provision or manage any servers.  Amazon ECS is deeply integrated with key AWS services including Elastic Load Balancing, Amazon VPC, AWS IAM, Amazon ECR, AWS Batch, Amazon CloudWatch, AWS CloudFormation, AWS CodeBuild, AWS CodePipeline, AWS CloudTrail, and Route 53 AutoNaming for Service Discovery.

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

90 questions
0
votes
1 answer

Is it possible to create a docker image of present running docker instances?

I am new to docker and I have instantiated a strapi container which needs a mongoDB container to be run first. I am currently running this in AWS ECS where I configured the task definition to have both the containers and linked. I am now just…
Parthiva
  • 254
  • 3
  • 21
0
votes
3 answers

How to start below services in docker Entrypoint

I want to start below services when container is running. sudo service celeryd start sudo service celerybeat start service php7.0-fpm start service rsyslog start Current below command is not working AWS ECS. And throwing some errors. ENTRYPOINT…
GihanS
  • 445
  • 2
  • 5
  • 15
0
votes
2 answers

How to provide argument to a task (container) on its launch on Amazon ECS using AWS Fargate

Here is an example, where I can run (locally) multiple instances of a docker image with different arguments to the echo command and to AUTHOR environment variable. NAME=Peter docker run alpine echo "Hello $NAME" docker run --name static-site -e…
Rishabh
  • 380
  • 4
  • 14
0
votes
1 answer

Set up multiple services in Docker

I am new to Docker. I have these services (pm2 (backend), apache (UI and data-batches (php), GO services and Database (postgresql)) running in an application. What is the best method to create a Docker image? My plan is to create a Docker image for…
user3906723
  • 117
  • 2
  • 15
0
votes
1 answer

AWS Autoscaling with load balancer

I have deployed a http listener containerized app on 1 EC2 instance by creating a cluster with 1 instance and running a container task on that instance. I am using auto scaling EC2 instances functionality with min instance as 1 and maximum instance…
exceed007
  • 101
  • 3
  • 10
0
votes
3 answers

ECS stop instance

I've an ECS cluster with running one task for my backend instance. I would like to be able to stop/start the EC2 instance whenever I want. Is it possible?? I was trying to stop instance directly but it terminates after few second when stopped and…
0
votes
1 answer

Docker push to amazon ECR succeeds but doesn't show up in web UI

I have a jenkinsfile with the following push to docker def image = docker.build("namespace/myapp:${env.DOCKER_TAG}", ".") docker.withRegistry('https://12345566622.dkr.ecr.us-east-1.amazonaws.com', 'ecr:us-east-1:…
sakurashinken
  • 3,940
  • 8
  • 34
  • 67
0
votes
1 answer

Create task definition with port mapping UDP port on AWS cloudformation

On the AWS cloudformation I have to create a task definition for ECS cluster. How can I specify UDP and TCP port on the Portmapping? I tried like this, but not working "PortMappings": [ { "ContainerPort": 8500, "HostPort": 8500, …
akhil krishna
  • 316
  • 1
  • 4
  • 14
0
votes
0 answers

How to get detailed cause information from a CloudFormation "resource(s) failed to create" failure (AWS::ApplicationAutoScaling::ScalableTarget)

I have a constrained IAM user that I'm trying to get minimally permissioned to create the baseline ECS CloudFormation reference architecture cleanly: https://github.com/aws-samples/ecs-refarch-cloudformation However, I can't get the reference stack…
0
votes
2 answers

AWS ECS: Task Being Mapped to Wrong Target Group

I have a Spring project with 2 modules: Pets and Owners, each a microservice that gets its data from a single MySQL DB. When I push the two into a single Docker container with 2 tasks -- 1 for each microservice -- they both get up and running, and…
acs254
  • 513
  • 2
  • 10
  • 25
0
votes
1 answer

Configuring AWS ECS cluster to be load-balanced and auto-scaling behind a DNS

I have a recently-Dockerized web app that I'm trying to get running in AWS ECS. I'm using Route 53 for the DNS. Although I haven't set it up yet in Route 53, my plan is to create a DNS record of api.uat.myapp.example.com, and what I want is to have…
smeeb
  • 27,777
  • 57
  • 250
  • 447
0
votes
0 answers

Unable to connect to zookeeper container - AWS ECS environment

Trying to launch Apache Kafka and zookeeper in AWS ECS environment with an ALB. Upon startup the docker instance gets killed after few seconds . The Zookeeper instance has been linked to the kafka instance . Env variables used while launching the…
0
votes
0 answers

Deploy Multiple full-stack React + Express applications with path routing on ELB

I currently have four containerized React + Express applications (port 3001 exposed) sitting on four individual ECS instances with four different CNAMEs. They each sit behind their own nginx service as a reverse proxy. Given that the number of…
hotshotiguana
  • 1,520
  • 2
  • 26
  • 40
0
votes
1 answer

kubernetes: default AWS ECR permissions

According to the official kubernetes documentation, in order for your nodes to get access to AWS ECR, the following flag needs to be added to ~/.kube/config: iam: allowContainerRegistry: true legacy: false Then, after updating the cluster, the…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
-2
votes
1 answer

Schedule ECS task in AWS

I am trying to write a cron expression to schedule a ECS task which will run as per given time. For example between 13 : 00 to 13 : 15.What will be the cron expression.
1 2 3 4 5
6