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
1
vote
1 answer

How can we determine the current AZ when running on AWS Fargate

I have a Java application running on AWS Fargate. EC2MetadataUtils.getAvailabilityZone() returns null from within an AWS Fargate Is there an alternative way to determine which AZ the fargate container is running in? I also have the subnet id for…
dogfish
  • 2,646
  • 4
  • 21
  • 37
1
vote
1 answer

Introspection in Fargate Launched Containers

Our containers launched in ECS using an EC2 cluster used the "ECS_CONTAINER_METADATA_FILE" mechanism of the container agent to get its task id. This doesn't appear to work with Fargate launched containers. Is there a mechanism to introspect when…
dogfish
  • 2,646
  • 4
  • 21
  • 37
1
vote
1 answer

Jenkins workers on AWS ECS Fargate: run a few jobs in parallel

I have AWS ECS cluster in Fargate mode for Jenkins workers (slaves) only. Cluster consists of one Service called jenkins which has Desired tasks value set to 5 But when I start a few jobs which have the same label they're queued up instead of…
kagarlickij
  • 7,327
  • 10
  • 36
  • 71
1
vote
2 answers

How to get public ip from a network interface attached to an ECS task with boto3

I need some help here. I'm trying to obtain a public IP from a network interface using boto3, for some reason I'm getting the following error: ec2 = boto3.resource('ec2') nia = ec2.NetworkInterfaceAssociation('eni-r2d2') nia.id # I can obtain the…
Manre
  • 921
  • 7
  • 12
1
vote
1 answer

AWS ECS - Registering multiple ECS clusters in one ALB

Four ECS clusters are registered in one ALB(not four ec2). Traffic is being distributed to each ECS cluster(using targetgroups) based on the listener rules in ALB. I am using dynamic port. After updating the ECS Service, it is confirmed that the…
1
vote
1 answer

aws codebuild failed in DOWNLOAD_SOURCE

I trying to run codebuild using my docker image for a build .Net framework application, but when i run the project it's failed in "DOWNLOAD_SOURCE" step with the message: "Build container found dead before completing the build. Build container died…
y.y
  • 11
  • 1
1
vote
1 answer

How to find the IP of the published web api application on ECS docker?

I created a .net core Asp.Net web api project in Visual studio and published it in AWS (Launch type: FARGATE). I can see the Service under ECS => Clusters => default. However, I cannot find the IP or host name to access the Asp.net web api service…
ca9163d9
  • 27,283
  • 64
  • 210
  • 413
1
vote
1 answer

How can I declare and reference an ECR repository in Terraform without jeopardizing its contents?

I am building a Terraform configuration to deploy some containers to AWS ECS. Obviously, I must push the Docker images to ECR. I created a repository in ECR and pushed the images. Now I'm automating. If I declare the aws_ecr_repository like so: data…
Colin Dean
  • 1,429
  • 1
  • 15
  • 26
1
vote
0 answers

Spring cloud app error in aws ecs environment

The following is the problem description: This error is only generated when the service is deployed on AWS ECS, there is no error in the local environment Every microservice currently deployed will have this problem. This problem will not affect…
1
vote
0 answers

How to safely secure micro-services in AWS VPC with ALB and OAuth server?

tldr: See bold generic questions below. I have built the infrastructure outlined below(in attachment) in AWS. OAuth specifies an auth server which issues tokens(Authorizes) and then authenticates tokens on each request and allows a proxy to the…
mortonprod
  • 183
  • 3
  • 13
1
vote
1 answer

How can I attach SNS notification to aws_appautoscaling_policy for ECS target tracking in terraform?

If I have the following terraform, and an SNS topic ARN available, is there a way to attach a cloudwatch notification event to the alarms that AWS creates under the covers? resource "aws_ecs_service" "service_definition" { name …
Steve
  • 21
  • 1
1
vote
1 answer

Running an ECS Task on a Schedule With .NET

I am currently using the IAmazonECS.RunTaskAsync API to run a task on ECS immediately. Now, I would like to postpone it to some point in the future. According to the documentation, it should be possible, but I haven't found a way to do it.
Ricardo Peres
  • 13,724
  • 5
  • 57
  • 74
1
vote
0 answers

Slackbot Deployment via ECS

I have a slackbot that uses RTM api and it's currently deployed via AWS ECS. Whenever I want to update the bot, a new task comes in and there's a 10-20 second window where the old bot is still shutting down while the new bot is up so now there will…
1
vote
1 answer

(EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "ae537564806a"

I have two container definations in single task defination in ECS. One is my Apache web server configured as load balancer and another is my spring-boot microservice running behind it. The configuration was working with ECS EC2 model. Now I am…
Sangam Belose
  • 4,262
  • 8
  • 26
  • 48
1
vote
1 answer

How to scale an aws ecs service based on multiple alarms

We have a service running in aws ecs that we want to scale in and out based on 2 metrics. Scale out when: cpu > 80% or connection_count > 9500 Scale in when: cpu < 50% and connection_count < 5000 We have access to both the cpu and connection count…
rayepps
  • 2,072
  • 1
  • 12
  • 22