# \#ecs

**URL:** https://discuss.hashicorp.com/tag/ecs/110.md

[Latest](https://discuss.hashicorp.com/latest.md) · [Categories](https://discuss.hashicorp.com/categories.md) · [Tags](https://discuss.hashicorp.com/tags.md)

---

## [ECS srevice destroy stuck issue](https://discuss.hashicorp.com/t/ecs-srevice-destroy-stuck-issue/58366)

<div class="topic-metadata">

**Author:** [@sanjay.verma](https://discuss.hashicorp.com/u/sanjay.verma)\
**Replies:** 6\
**Last updated:** [May 16, 2026, 9:55pm UTC](https://discuss.hashicorp.com/t/ecs-srevice-destroy-stuck-issue/58366 "2026-05-16T21:55:08Z")

</div>

Hi All, I am creating an ECS EC2 type cluster and deploying my container images in that using ECS service. Deployment is succesfull and all the required resources are created and container is deployed onto the ECS clust…

---

## [ECS mesh-task module with ARM64](https://discuss.hashicorp.com/t/ecs-mesh-task-module-with-arm64/76739)

<div class="topic-metadata">

**Author:** [@mlindes](https://discuss.hashicorp.com/u/mlindes)\
**Replies:** 0\
**Last updated:** [November 3, 2025, 4:19pm UTC](https://discuss.hashicorp.com/t/ecs-mesh-task-module-with-arm64/76739 "2025-11-03T16:19:29Z")

</div>

I’m using the mesh-task module to run consul connect services in AWS ECS Fargate. The module does not allow for ARM images so therefore we’re stuck with x86\_64 and will have to ensure all binaries are compiled as such. A…

---

## [Cycle Error in Terraform When Using Subnets, NAT Gateways, NACLs, and ECS Service](https://discuss.hashicorp.com/t/cycle-error-in-terraform-when-using-subnets-nat-gateways-nacls-and-ecs-service/70835)

<div class="topic-metadata">

**Author:** [@hanrat](https://discuss.hashicorp.com/u/hanrat)\
**Replies:** 1\
**Last updated:** [October 22, 2024, 2:34pm UTC](https://discuss.hashicorp.com/t/cycle-error-in-terraform-when-using-subnets-nat-gateways-nacls-and-ecs-service/70835 "2024-10-22T14:34:27Z")

</div>

I’m facing a cycle error in my Terraform configuration when deploying an AWS VPC with public/private subnets, NAT gateways, NACLs, and an ECS service. Here’s the error message Error: Cycle: module.app.aws\_route\_table\_as…

---

## [Replacement of "aws\_ecs\_task\_definition" resource depends on resource that will be destroyed causing a cycle](https://discuss.hashicorp.com/t/replacement-of-aws-ecs-task-definition-resource-depends-on-resource-that-will-be-destroyed-causing-a-cycle/68451)

<div class="topic-metadata">

**Author:** [@eugeneoei](https://discuss.hashicorp.com/u/eugeneoei)\
**Replies:** 0\
**Last updated:** [July 9, 2024, 9:24am UTC](https://discuss.hashicorp.com/t/replacement-of-aws-ecs-task-definition-resource-depends-on-resource-that-will-be-destroyed-causing-a-cycle/68451 "2024-07-09T09:24:49Z")

</div>

Hi, I am hoping to get some suggestions on how I can resolve a cycle issue “cleanly” that occurred during terraform plan. The terraform setup I have currently looks something similar to the following: locals { ser…

---

## [AWS ECS service\_connect\_configuration fails to create DNS record](https://discuss.hashicorp.com/t/aws-ecs-service-connect-configuration-fails-to-create-dns-record/49212)

<div class="topic-metadata">

**Author:** [@glitchcowboy](https://discuss.hashicorp.com/u/glitchcowboy)\
**Replies:** 2\
**Last updated:** [July 6, 2024, 9:59am UTC](https://discuss.hashicorp.com/t/aws-ecs-service-connect-configuration-fails-to-create-dns-record/49212 "2024-07-06T09:59:56Z")

</div>

It seems that the ECS Service connect configuration only creates HTTP/API cloudmap services, even though the terraform code lists the dns\_alias. e.g. - Installing hashicorp/aws v4.49.0 resource "aws\_service\_discovery\_…

---

## [Cannot create role for ecs](https://discuss.hashicorp.com/t/cannot-create-role-for-ecs/53408)

<div class="topic-metadata">

**Author:** [@peacechan](https://discuss.hashicorp.com/u/peacechan)\
**Replies:** 0\
**Last updated:** [May 3, 2023, 9:18pm UTC](https://discuss.hashicorp.com/t/cannot-create-role-for-ecs/53408 "2023-05-03T21:18:05Z")

</div>

Hi, i’m trying to create ecs task and i want to use the role (role-1) that i imported but i’m not able to use the same role to create ecs task. My iam-role.tf looks like: data "aws\_iam\_policy\_document" "ecs\_task\_execut…

---

## [Agent.proxycfg error on consul agent](https://discuss.hashicorp.com/t/agent-proxycfg-error-on-consul-agent/51752)

<div class="topic-metadata">

**Author:** [@chaulagainpawan19](https://discuss.hashicorp.com/u/chaulagainpawan19)\
**Replies:** 3\
**Last updated:** [April 3, 2023, 7:56am UTC](https://discuss.hashicorp.com/t/agent-proxycfg-error-on-consul-agent/51752 "2023-04-03T07:56:46Z")

</div>

Hi team, We have a consul agent running as a sidecar container in our ECS system it was working fine until recently, but we are getting multiple errors from the consul agent. We have 100+ services running but we can s…

---

## [Multiple port mappings in aws-ecs](https://discuss.hashicorp.com/t/multiple-port-mappings-in-aws-ecs/50271)

<div class="topic-metadata">

**Author:** [@kris](https://discuss.hashicorp.com/u/kris)\
**Replies:** 1\
**Last updated:** [February 16, 2023, 7:38pm UTC](https://discuss.hashicorp.com/t/multiple-port-mappings-in-aws-ecs/50271 "2023-02-16T19:38:20Z")

</div>

I’m running an opentelemetry collector as a sidecar in one of my tasks. It can listen on multiple ports, but I only have the option to specify one container\_port and one host\_port. Looking at the sidecar code in the aw…

---

## [Nomad ecs(with ec2) plugin sample](https://discuss.hashicorp.com/t/nomad-ecs-with-ec2-plugin-sample/45972)

<div class="topic-metadata">

**Author:** [@swbs90](https://discuss.hashicorp.com/u/swbs90)\
**Replies:** 3\
**Last updated:** [October 26, 2022, 7:09am UTC](https://discuss.hashicorp.com/t/nomad-ecs-with-ec2-plugin-sample/45972 "2022-10-26T07:09:37Z")

</div>

hello i am lee I was in the process of deploying a container service on an ecs cluster using nomad. I succeeded normally when the ecs cluster is a fargate type, but the ec2 type is currently failing. My ecs(fargate)jo…

---

## [AWS ECS release not waiting for healthy targets](https://discuss.hashicorp.com/t/aws-ecs-release-not-waiting-for-healthy-targets/44201)

<div class="topic-metadata">

**Author:** [@kris](https://discuss.hashicorp.com/u/kris)\
**Replies:** 1\
**Last updated:** [October 13, 2022, 9:33pm UTC](https://discuss.hashicorp.com/t/aws-ecs-release-not-waiting-for-healthy-targets/44201 "2022-10-13T21:33:01Z")

</div>

We’re using waypoint to deploy into ECS (fargate) with remote runners. ECS reports that the deploy is successful as soon as it starts the containers in the task but does not wait for the containers to reach RUNNING stat…

---

## [Consul on ECS 0.4.0 release](https://discuss.hashicorp.com/t/consul-on-ecs-0-4-0-release/38099)

<div class="topic-metadata">

**Author:** [@fatima](https://discuss.hashicorp.com/u/fatima)\
**Replies:** 0\
**Last updated:** [April 7, 2022, 3:47pm UTC](https://discuss.hashicorp.com/t/consul-on-ecs-0-4-0-release/38099 "2022-04-07T15:47:42Z")

</div>

The Consul ECS team has released Consul ECS 0.4.0! The main feature of this release is support for Consul admin partitions. See the changelogs below for details. Consul ECS Terraform Module 0.4.0 Terraform module: Ter…

---

## [Using AWS ECS or good old' EC2 instances in setting up Hashicorp Boundary](https://discuss.hashicorp.com/t/using-aws-ecs-or-good-old-ec2-instances-in-setting-up-hashicorp-boundary/36026)

<div class="topic-metadata">

**Author:** [@romelBen](https://discuss.hashicorp.com/u/romelBen)\
**Replies:** 3\
**Last updated:** [February 22, 2022, 4:34pm UTC](https://discuss.hashicorp.com/t/using-aws-ecs-or-good-old-ec2-instances-in-setting-up-hashicorp-boundary/36026 "2022-02-22T16:34:24Z")

</div>

Hey all. I am looking into incorporating Hashicorp Vault and Boundary onto my architecture. I am currently testing Vault but I would also like to have Boundary since it can help with replacing Bastion hosts. However, I a…

---

## [How to pass ECS ENV variables from tfvars file](https://discuss.hashicorp.com/t/how-to-pass-ecs-env-variables-from-tfvars-file/35702)

<div class="topic-metadata">

**Author:** [@rahul1436](https://discuss.hashicorp.com/u/rahul1436)\
**Replies:** 0\
**Last updated:** [February 15, 2022, 6:53am UTC](https://discuss.hashicorp.com/t/how-to-pass-ecs-env-variables-from-tfvars-file/35702 "2022-02-15T06:53:04Z")

</div>

Hi, I am trying to create task definition using terraform and it is working fine. Now my requirement is that we have to pass ENV variables for container from tfvars file which i am not able to figure out. My main.tf fi…

---

## [How to handle Dynamic Secrets and Parameters for Container Definitions in ECS at same time](https://discuss.hashicorp.com/t/how-to-handle-dynamic-secrets-and-parameters-for-container-definitions-in-ecs-at-same-time/35144)

<div class="topic-metadata">

**Author:** [@herculan0](https://discuss.hashicorp.com/u/herculan0)\
**Replies:** 2\
**Last updated:** [February 8, 2022, 1:34pm UTC](https://discuss.hashicorp.com/t/how-to-handle-dynamic-secrets-and-parameters-for-container-definitions-in-ecs-at-same-time/35144 "2022-02-08T13:34:49Z")

</div>

I’m referencing existing secret versions in Secret manager by arn and creating string for parameter in secret manager with lookup. I want to use both of them in the session’s secrets of my container\_definitions. sort…

---

## [AWS capacity\_providers do not inherit providers default\_tags](https://discuss.hashicorp.com/t/aws-capacity-providers-do-not-inherit-providers-default-tags/32460)

<div class="topic-metadata">

**Author:** [@alekspickle](https://discuss.hashicorp.com/u/alekspickle)\
**Replies:** 1\
**Last updated:** [November 30, 2021, 10:57am UTC](https://discuss.hashicorp.com/t/aws-capacity-providers-do-not-inherit-providers-default-tags/32460 "2021-11-30T10:57:00Z")

</div>

I have configured default\_tags on provider configuration and create a ton of rosources and all of them inherit those, except capacity\_providers. aws ecs describe-capacity-providers --query "capacityProviders\[\*\].tags" …

---

## [Consul ECS 0.2.0 GA Released](https://discuss.hashicorp.com/t/consul-ecs-0-2-0-ga-released/32082)

<div class="topic-metadata">

**Author:** [@fatima](https://discuss.hashicorp.com/u/fatima)\
**Replies:** 0\
**Last updated:** [November 17, 2021, 11:33pm UTC](https://discuss.hashicorp.com/t/consul-ecs-0-2-0-ga-released/32082 "2021-11-17T23:33:32Z")

</div>

The Consul ECS team is excited to announce general availability of Consul on ECS! See the announcement and the changelogs below for details. Consul ECS Terraform Module 0.2.0 Terraform module: https://registry.terrafo…
