Questions tagged [aws-fargate]

AWS Fargate is a service within Amazon Web Services that allows for running containers without managing servers or clusters. Use this tag for questions about AWS Fargate. For context, also tag your question with [amazon-ecs] or [amazon-eks] to denote which managed container service you're using.

AWS Fargate is a compute engine for deploying and managing containers without having to manage any of the underlying infrastructure (servers or clusters). AWS Fargate supports Amazon ECS and Amazon EKS.

Usage guidance

Use this tag for questions about AWS Fargate. For context, also tag your question with or to denote which managed container service you're using.

Resources

1725 questions
4
votes
1 answer

error creating Application AutoScaling Target: ValidationException: Unsupported service namespace, resource type or scalable dimension

I'm trying to enable ECS autoscaling for some Fargate services and run into the error in the title: error creating Application AutoScaling Target: ValidationException: Unsupported service namespace, resource type or scalable dimension The error…
Aaron
  • 2,154
  • 5
  • 29
  • 42
4
votes
1 answer

Unable to provision Pod in EKS cluster configured with Fargate

I have recently setup an EKS cluster with Fargate. When I tried to deploy Redis Service on k8s using guide, I am getting the following errors: Pod provisioning timed out (will retry) for pod: default/redis-operator-79d6d769dc-j246j Disabled logging…
4
votes
2 answers

Unable to access EFS from ECS Fargate task

Trying to launch a Fargate task that uses an EFS Volume. When starting the task from ECS Console, I'm getting this error : ResourceInitializationError: failed to invoke EFS utils commands to set up EFS volumes: stderr: Failed to resolve…
user19205267
  • 71
  • 1
  • 6
4
votes
1 answer

Configure ECS to scale to zero when not in use

I'm running Superset in AWS ECS using Fargate. This instance of Superset is for internal use only. I want to be able to configure ECS to scale to zero tasks when not in use. I am aware that it will take time (Possibly minutes) to come back up, the…
4
votes
1 answer

Remote connection / SSH'ing into a deployed AWS AppRunner container

Is it possible to gain access to the container shell of an app I have deployed within AWS AppRunner? I realise the service is designed to be very AWS managed, however the utility of being able to see inside your deployed container is often…
solarflare
  • 880
  • 2
  • 8
  • 23
4
votes
0 answers

How to mount a specific file to AWS ECS container(fargate) with aws cdk

This is how I am building a docker image, creating task definition, and deploying it to fargate cluster. My requirement is to mount a specific file from local to the container at the run time, not through the build. How can I achieve…
Dcook
  • 899
  • 7
  • 32
4
votes
1 answer

Best practice for multiple Container(django,nginx) on Fargate

I have multiple containers/images such as admin(django),nginx(httpserver) my system is here below. port80-> nginx -> port8011 -> admin I want to deploy these on fargate. However I'm still confused. Two Image, Two Container,Two task difinition,two…
Dekishigrash
  • 325
  • 2
  • 10
4
votes
2 answers

AWS ECS CannotPullContainerError: inspect image has been retried 1 time(s): failed to resolve ref, not found

when trying to run an AWS ECS task I am getting the following error: CannotPullContainerError: inspect image has been retried 1 time(s): failed to resolve ref "id.dkr.ecr.us-east-1.amazonaws.com/thing/1234567:latest":…
Saus
  • 159
  • 1
  • 1
  • 8
4
votes
1 answer

Update ECS Task definition for background service from Codepipeline - without a load balancer

Introduction I am deploying a Django app using Celery for background tasks on Amazon ECS, and we're using CodePipeline for CI/CD. I would like to be able to split this up into three ECS Services, each running only one task - this is so they can be…
4
votes
1 answer

Figuring out the real Java heap on AWS Fargate

We have a container (task) running in AWS Fargate and we see some weird behavior where memory don't seem to be utilized correctly so I've been trying to figure out how this is actually set/used... The task is set to 2vCPU/4GB memory. The app is a…
Anders
  • 3,198
  • 1
  • 20
  • 43
4
votes
1 answer

Add python logger to stream logs to CloudWatch within Fargate

I have a docker container with a python script (Python 3.8), which I execute in AWS Fargate via Airflow (ECSOperator). The script streams several logs to Cloudwatch using the awslog driver defined in the task definition. I'm able to correctly see…
mcanizo
  • 115
  • 3
  • 10
4
votes
0 answers

EKS Fargate Fluent-Bit multiple Outputs

I'm running a K8 cluster on Fargate and using FluentBit to send logs to cloudwatch https://docs.aws.amazon.com/eks/latest/userguide/fargate-logging.html#fargate-logging-troubleshooting I'm able to send all logs to a cloudwatch group with this…
Tony
  • 656
  • 8
  • 20
4
votes
1 answer

Monitoring EKS cluster on AWS Fargate alone

I am trying to setup a monitoring environment in aws eks with fargate compute nodes alone. I have seen a blog post here where we need a additional node group to host prometheus and grafana. But I need to get this done with fargate alone. I tried…
Vamsi
  • 388
  • 2
  • 12
4
votes
1 answer

Interactive shell in Docker image with Amazon ECS with `aws ecs run-task` followed by `aws ecs execute-command`

I would like to launch an interactive shell into a public Docker image on my AWS ECS/Fargate cluster to run network/connectivity tests from inside the cluster. It seems the official way to do this is with aws ecs run-task followed by aws ecs…
clay
  • 18,138
  • 28
  • 107
  • 192
4
votes
2 answers

HPA on AWS EKS with Fargate

I have AWS EKS cluster with only Fargate profile, no Node Groups. Is it possible to enable HPA in this case? I tried to enable metric server as described here but pod creation fails with error 0/4 nodes are available: 4 node(s) had taint…