# \#ecs

**URL:** https://community.traefik.io/tag/ecs/2.md

[Latest](https://community.traefik.io/latest.md) · [Categories](https://community.traefik.io/categories.md) · [Tags](https://community.traefik.io/tags.md)

---

## [Metrics in ECS with several traefi instances](https://community.traefik.io/t/metrics-in-ecs-with-several-traefi-instances/30325)

<div class="topic-metadata">

**Author:** [@dansmerino](https://community.traefik.io/u/dansmerino)\
**Replies:** 0\
**Last updated:** [October 29, 2026, 6:58pm UTC](https://community.traefik.io/t/metrics-in-ecs-with-several-traefi-instances/30325 "2026-10-29T18:58:33Z")

</div>

Hi. I have 3 traefik instances in AWS ECS, all configured the same, we use 3 instances to use the redundancy of the availability zones. It works, the trafic is being rerouted as it should. I have enabled metrics in the …

---

## [Dynamic Config for TLS acme inside ecs not working](https://community.traefik.io/t/dynamic-config-for-tls-acme-inside-ecs-not-working/27787)

<div class="topic-metadata">

**Author:** [@mithucste30](https://community.traefik.io/u/mithucste30)\
**Replies:** 3\
**Last updated:** [June 24, 2025, 1:55pm UTC](https://community.traefik.io/t/dynamic-config-for-tls-acme-inside-ecs-not-working/27787 "2025-06-24T13:55:39Z")

</div>

I have a ecs service(whoami) with docker labels "traefik.enable" = true "traefik.http.services.whoami.loadbalancer.server.port" = "80" My traefik container has service discovery e…

---

## [Enable stickiness for service@ecs](https://community.traefik.io/t/enable-stickiness-for-service-ecs/27777)

<div class="topic-metadata">

**Author:** [@gcmlabs](https://community.traefik.io/u/gcmlabs)\
**Replies:** 5\
**Last updated:** [June 23, 2025, 8:02pm UTC](https://community.traefik.io/t/enable-stickiness-for-service-ecs/27777 "2025-06-23T20:02:29Z")

</div>

Hello! I'm using ECS provider to configure services under my Traefik load balancer and everything works smoothly. Now I need to dynamically enable and disable stickiness to some services. I've tried to create a {servic…

---

## [Wildcard Certificate route53 not being generated](https://community.traefik.io/t/wildcard-certificate-route53-not-being-generated/27418)

<div class="topic-metadata">

**Author:** [@Trey](https://community.traefik.io/u/Trey)\
**Replies:** 8\
**Last updated:** [May 7, 2025, 5:42pm UTC](https://community.traefik.io/t/wildcard-certificate-route53-not-being-generated/27418 "2025-05-07T17:42:23Z")

</div>

I'm trying to have a single wildcard certificate for a certificate resolver rather than generating a new certificate for every new subdomain. Due to some constraints, we cannot use square brackets (\[ \]) in docker label …

---

## [Proxy protocol and getting original clientIP at backend](https://community.traefik.io/t/proxy-protocol-and-getting-original-clientip-at-backend/26555)

<div class="topic-metadata">

**Author:** [@naveen](https://community.traefik.io/u/naveen)\
**Replies:** 16\
**Last updated:** [February 27, 2025, 6:48am UTC](https://community.traefik.io/t/proxy-protocol-and-getting-original-clientip-at-backend/26555 "2025-02-27T06:48:32Z")

</div>

My backend application is running behind the traefik which acts as an main load balancer. for our use case our requst should be end to end encrypted so we enabled ssl pass through in traefik level and use tcp router for …

---

## [ECS config discovery: "Router defined multiple times with different configurations"](https://community.traefik.io/t/ecs-config-discovery-router-defined-multiple-times-with-different-configurations/26440)

<div class="topic-metadata">

**Author:** [@AP-Hunt](https://community.traefik.io/u/AP-Hunt)\
**Replies:** 0\
**Last updated:** [February 10, 2025, 2:44pm UTC](https://community.traefik.io/t/ecs-config-discovery-router-defined-multiple-times-with-different-configurations/26440 "2025-02-10T14:44:30Z")

</div>

Hi, I'm deploying Traefik to AWS ECS to proxy traffic to ECS tasks that it finds through the ECS configuration discovery. It works perfectly when the task is running in a stable state, but during deployments (when there…

---

## [Dynamic content into static configuration](https://community.traefik.io/t/dynamic-content-into-static-configuration/26366)

<div class="topic-metadata">

**Author:** [@rdeafq](https://community.traefik.io/u/rdeafq)\
**Replies:** 1\
**Last updated:** [February 5, 2025, 1:04pm UTC](https://community.traefik.io/t/dynamic-content-into-static-configuration/26366 "2025-02-05T13:04:56Z")

</div>

I am trying to configure tracing in my Traefik container but the endpoint will change depending on the environment I am working in. I am currently using a traefik.yml for static configuration, which makes it so that the …

---

## [Switch router/middleware config from docker labels to file does not work](https://community.traefik.io/t/switch-router-middleware-config-from-docker-labels-to-file-does-not-work/25916)

<div class="topic-metadata">

**Author:** [@glitterguy](https://community.traefik.io/u/glitterguy)\
**Replies:** 0\
**Last updated:** [January 9, 2025, 10:41am UTC](https://community.traefik.io/t/switch-router-middleware-config-from-docker-labels-to-file-does-not-work/25916 "2025-01-09T10:41:28Z")

</div>

Hi, I run Traefik on AWS ECS with discovery, working good so far. Now I want to migrate middleware and router settings from docker labels to config file, but I cant get it working (http 404). I also tried with exposed…

---

## [ECS Routing Issues](https://community.traefik.io/t/ecs-routing-issues/25269)

<div class="topic-metadata">

**Author:** [@tblount](https://community.traefik.io/u/tblount)\
**Replies:** 0\
**Last updated:** [November 22, 2024, 4:10pm UTC](https://community.traefik.io/t/ecs-routing-issues/25269 "2024-11-22T16:10:45Z")

</div>

Hi all, I am having trouble with my Traefik proxy settings and I'm hoping you can help. I intend to have a web application where the end user routes to an ALB which then passes the request to Traefik which should then …

---

## [Issues with routers when making HTTPS requests to Traefik](https://community.traefik.io/t/issues-with-routers-when-making-https-requests-to-traefik/25193)

<div class="topic-metadata">

**Author:** [@caionobrex](https://community.traefik.io/u/caionobrex)\
**Replies:** 6\
**Last updated:** [November 16, 2024, 11:43pm UTC](https://community.traefik.io/t/issues-with-routers-when-making-https-requests-to-traefik/25193 "2024-11-16T23:43:28Z")

</div>

Guys, I'm having some problems with routers when I make HTTPS request to Traefik. It looks like Traefik can't match the Host, but If I make requests using just HTTP, it works fine! First of all my Traefik is behind an A…

---

## [What is the best way to get the cluster to the Traefik ECS provider?](https://community.traefik.io/t/what-is-the-best-way-to-get-the-cluster-to-the-traefik-ecs-provider/24931)

<div class="topic-metadata">

**Author:** [@Unabogie](https://community.traefik.io/u/Unabogie)\
**Replies:** 0\
**Last updated:** [October 27, 2024, 4:36pm UTC](https://community.traefik.io/t/what-is-the-best-way-to-get-the-cluster-to-the-traefik-ecs-provider/24931 "2024-10-27T16:36:33Z")

</div>

Hi, we're evaluating Traefik to handle some ECS orchestration. In our setup, ECS will assign a random hash to the name of the cluster (e,g, my-cluster-abcd1234) If Traefik is running as a service on the same cluster, wh…

---

## [Accessing the traefik dashboard with the ecs provider](https://community.traefik.io/t/accessing-the-traefik-dashboard-with-the-ecs-provider/24451)

<div class="topic-metadata">

**Author:** [@pineappledev](https://community.traefik.io/u/pineappledev)\
**Replies:** 1\
**Last updated:** [September 16, 2024, 5:12am UTC](https://community.traefik.io/t/accessing-the-traefik-dashboard-with-the-ecs-provider/24451 "2024-09-16T05:12:17Z")

</div>

Hello, I am trying to set up traefik with aws ECS, I was able to get the dashboard working with insecure mode but I have been unsuccessful when attempting to lock down the dashboard with the basic auth middleware. Below …

---

## [ERR Router uses a non-existent certificate resolver (ecs)](https://community.traefik.io/t/err-router-uses-a-non-existent-certificate-resolver-ecs/24408)

<div class="topic-metadata">

**Author:** [@vforvalerio](https://community.traefik.io/u/vforvalerio)\
**Replies:** 0\
**Last updated:** [September 12, 2024, 2:05pm UTC](https://community.traefik.io/t/err-router-uses-a-non-existent-certificate-resolver-ecs/24408 "2024-09-12T14:05:10Z")

</div>

Hi I'm using Traffic with ECS tasks on EC2. I often get errors like "ERR Router uses a non-existent certificate resolver certificateResolver=x routerName=x-http@ecs" These seem to pop up for all resolvers on a traefik i…

---

## [Manipulating Loadbalancer via custom plugin](https://community.traefik.io/t/manipulating-loadbalancer-via-custom-plugin/23974)

<div class="topic-metadata">

**Author:** [@demux](https://community.traefik.io/u/demux)\
**Replies:** 0\
**Last updated:** [August 12, 2024, 1:39pm UTC](https://community.traefik.io/t/manipulating-loadbalancer-via-custom-plugin/23974 "2024-08-12T13:39:45Z")

</div>

I'm trying to find a way to find a good way to disable servers based on the code version deployed to each server. I'm using the ECS provider to discover services. This is the process that I want: A new task is deplo…

---

## [Default certificate is not working for our Traefik](https://community.traefik.io/t/default-certificate-is-not-working-for-our-traefik/23522)

<div class="topic-metadata">

**Author:** [@dhaneesh88](https://community.traefik.io/u/dhaneesh88)\
**Replies:** 2\
**Last updated:** [July 30, 2024, 11:04am UTC](https://community.traefik.io/t/default-certificate-is-not-working-for-our-traefik/23522 "2024-07-30T11:04:33Z")

</div>

Hello Team, We are using Traefik for redirection for over 3000 websites. We are using global accelerator and NLB that points to ECS fargate where traeffik image is used with following configurations "command": \["--api…

---

## [Support multiple default rule on traefik.yml and ecs docker labels](https://community.traefik.io/t/support-multiple-default-rule-on-traefik-yml-and-ecs-docker-labels/23534)

<div class="topic-metadata">

**Author:** [@alvin-reyes](https://community.traefik.io/u/alvin-reyes)\
**Replies:** 1\
**Last updated:** [July 30, 2024, 11:00am UTC](https://community.traefik.io/t/support-multiple-default-rule-on-traefik-yml-and-ecs-docker-labels/23534 "2024-07-30T11:00:44Z")

</div>

I'm trying to add a new host as part of the entry point. My traefik yaml looks like this. providers: ecs: ....... refreshSeconds: 15 exposedByDefault: false autoDiscoverClusters: true defaultRule: …

---

## [Error with multiple traefik instances on top of multiple ECS instances](https://community.traefik.io/t/error-with-multiple-traefik-instances-on-top-of-multiple-ecs-instances/22253)

<div class="topic-metadata">

**Author:** [@alvin-reyes](https://community.traefik.io/u/alvin-reyes)\
**Replies:** 7\
**Last updated:** [May 2, 2024, 7:47am UTC](https://community.traefik.io/t/error-with-multiple-traefik-instances-on-top-of-multiple-ecs-instances/22253 "2024-05-02T07:47:59Z")

</div>

I'm running multiple traefik loadbalancers that routes request to ECS with 60 instances. REST API / HTTP request works great but my WSS connect returns Peeking first byte error 2024-04-12T04:48:33Z ERR Error while Peek…

---

## [Traefik Url Redirect Without Change URL](https://community.traefik.io/t/traefik-url-redirect-without-change-url/21990)

<div class="topic-metadata">

**Author:** [@ekarakaya](https://community.traefik.io/u/ekarakaya)\
**Replies:** 1\
**Last updated:** [March 25, 2024, 8:11pm UTC](https://community.traefik.io/t/traefik-url-redirect-without-change-url/21990 "2024-03-25T20:11:03Z")

</div>

Hi, we are using AWS Api Gateway for redirect a dummy address to our APIs. For example, we have an address like abc.com and we have 5 path for this address like /customer, /product etc. we are getting response from diff…

---

## [Graceful ECS Service Rotation in Traefik to Avoid 503s](https://community.traefik.io/t/graceful-ecs-service-rotation-in-traefik-to-avoid-503s/21194)

<div class="topic-metadata">

**Author:** [@jonno333](https://community.traefik.io/u/jonno333)\
**Replies:** 0\
**Last updated:** [January 24, 2024, 7:06am UTC](https://community.traefik.io/t/graceful-ecs-service-rotation-in-traefik-to-avoid-503s/21194 "2024-01-24T07:06:24Z")

</div>

Hello Everyone, I would greatly appreciate any assistance with an issue I've been unable to resolve despite extensive online research. I'm looking for guidance and hoping someone here can point me in the right direction…

---

## [Setting up HTTPS on Docker ECS](https://community.traefik.io/t/setting-up-https-on-docker-ecs/19923)

<div class="topic-metadata">

**Author:** [@IanLDias](https://community.traefik.io/u/IanLDias)\
**Replies:** 0\
**Last updated:** [September 22, 2023, 2:08am UTC](https://community.traefik.io/t/setting-up-https-on-docker-ecs/19923 "2023-09-22T02:08:45Z")

</div>

Hey everyone, I'm looking to host a webservice through Docker on ECS. I'm trying to set up https for it but I'm having no luck in doing so. I've tried many different configs, but I have a lack of understanding in this s…

---

## [Static service endpoints with Docker labels](https://community.traefik.io/t/static-service-endpoints-with-docker-labels/19794)

<div class="topic-metadata">

**Author:** [@antwacky](https://community.traefik.io/u/antwacky)\
**Replies:** 2\
**Last updated:** [September 11, 2023, 11:25am UTC](https://community.traefik.io/t/static-service-endpoints-with-docker-labels/19794 "2023-09-11T11:25:34Z")

</div>

I can configure a service with the file provider like so: http: services: example: loadBalancer: serversTransport: insecureTransport@file servers: - url: "https://example.com/" I'm…

---

## [Traefik is forwarding request to wrong host for a service](https://community.traefik.io/t/traefik-is-forwarding-request-to-wrong-host-for-a-service/19034)

<div class="topic-metadata">

**Author:** [@binjie](https://community.traefik.io/u/binjie)\
**Replies:** 2\
**Last updated:** [June 23, 2023, 8:20am UTC](https://community.traefik.io/t/traefik-is-forwarding-request-to-wrong-host-for-a-service/19034 "2023-06-23T08:20:17Z")

</div>

Dear Traefik community I've come across a snag and hope some experts from here can help out. We are trying to deploy a new service but Traefik is returning 404. And the root cause seems to be it is holding onto a stale…

---

## [Traefik + ECS Fargate. How?](https://community.traefik.io/t/traefik-ecs-fargate-how/9508)

<div class="topic-metadata">

**Author:** [@numToStr](https://community.traefik.io/u/numToStr)\
**Replies:** 1\
**Last updated:** [March 19, 2023, 2:46pm UTC](https://community.traefik.io/t/traefik-ecs-fargate-how/9508 "2023-03-19T14:46:53Z")

</div>

I've been trying to deploy multiple services behind a Traefik proxy inside the ECS Fargate cluster. But Traefik is not been able to connect to the services, it always says Gateway Timeout. I don't know what I am doing wr…

---

## [Support for ECS Anywhere](https://community.traefik.io/t/support-for-ecs-anywhere/14749)

<div class="topic-metadata">

**Author:** [@tuxpower](https://community.traefik.io/u/tuxpower)\
**Replies:** 2\
**Last updated:** [March 19, 2023, 2:42pm UTC](https://community.traefik.io/t/support-for-ecs-anywhere/14749 "2023-03-19T14:42:24Z")

</div>

Hi, I wonder how difficult could it be to add support for ECS Anywhere? As anyone made any effort on this direction? My current employer is very interested on this feature and is willing to give me time to develop it. …

---

## [Question about traefik metric traefik\_service\_requests\_total](https://community.traefik.io/t/question-about-traefik-metric-traefik-service-requests-total/17091)

<div class="topic-metadata">

**Author:** [@fe\_helfstein](https://community.traefik.io/u/fe_helfstein)\
**Replies:** 0\
**Last updated:** [January 11, 2023, 8:03pm UTC](https://community.traefik.io/t/question-about-traefik-metric-traefik-service-requests-total/17091 "2023-01-11T20:03:34Z")

</div>

Hi folks! we are using traefik:v2.5.2 We are also using the metric traefik\_service\_requests\_total to return "client side error" of services. But dont know is correct. sum(increase(traefik\_service\_requests\_total{clus…

---

## [Multiple providers with the same HTTP Path rule](https://community.traefik.io/t/multiple-providers-with-the-same-http-path-rule/16888)

<div class="topic-metadata">

**Author:** [@shantanugadgil](https://community.traefik.io/u/shantanugadgil)\
**Replies:** 2\
**Last updated:** [December 22, 2022, 5:20pm UTC](https://community.traefik.io/t/multiple-providers-with-the-same-http-path-rule/16888 "2022-12-22T17:20:13Z")

</div>

Based on multiple providers with the same rule · Issue #9599 · traefik/traefik · GitHub I am reposting the question here for further discussion. I'll try to explain what I have done so far and my further confusion. Wha…

---

## [Traefik 502 Bad Gateway with WSS on AWS ECS Fargate](https://community.traefik.io/t/traefik-502-bad-gateway-with-wss-on-aws-ecs-fargate/15943)

<div class="topic-metadata">

**Author:** [@JulienC](https://community.traefik.io/u/JulienC)\
**Replies:** 1\
**Last updated:** [September 29, 2022, 1:20pm UTC](https://community.traefik.io/t/traefik-502-bad-gateway-with-wss-on-aws-ecs-fargate/15943 "2022-09-29T13:20:29Z")

</div>

Hi, I'm trying to run a secured websocket service, as well as a HTTPS service in an AWS Fargate task. I use traefik with an ECS provider to do the routing inside the task. My HTTPS service is working great but the WSS…

---

## [Setting default rule template for ECS services](https://community.traefik.io/t/setting-default-rule-template-for-ecs-services/15327)

<div class="topic-metadata">

**Author:** [@bgyori](https://community.traefik.io/u/bgyori)\
**Replies:** 0\
**Last updated:** [August 3, 2022, 7:07pm UTC](https://community.traefik.io/t/setting-default-rule-template-for-ecs-services/15327 "2022-08-03T19:07:07Z")

</div>

Hello everyone! I'm attempting to set a default rule template for all ECS services using the container name. The goal is to map subdomains to matching container names. So far I've come up with the following using the do…

---

## [Intermittent Response and Routing from Traefik in AWS ECS/Fargate](https://community.traefik.io/t/intermittent-response-and-routing-from-traefik-in-aws-ecs-fargate/14702)

<div class="topic-metadata">

**Author:** [@DustinHolden](https://community.traefik.io/u/DustinHolden)\
**Replies:** 0\
**Last updated:** [June 7, 2022, 9:14pm UTC](https://community.traefik.io/t/intermittent-response-and-routing-from-traefik-in-aws-ecs-fargate/14702 "2022-06-07T21:14:54Z")

</div>

I am trying to configure traefik proxy to run within AWS Elastic Container Service using Fargate containers. I am using the Docker Compose ECS integration to create and configure the cluster, tasks, and services. There…

---

## [Affinity based on url](https://community.traefik.io/t/affinity-based-on-url/14365)

<div class="topic-metadata">

**Author:** [@DevoKun](https://community.traefik.io/u/DevoKun)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 12:53pm UTC](https://community.traefik.io/t/affinity-based-on-url/14365 "2022-05-05T12:53:12Z")

</div>

Is it possible to define session affinity based on a requested URL? I require that connections from multiple users, when going to the same URL, go to the same backend host. For example: If the request from cilent-1 …

[Next page](https://community.traefik.io/tag/ecs/2.md?match_all_tags=true&page=1&tags%5B%5D=ecs)
