<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/can-t-ssh-into-fargate-use-ecs-exec--lnt5aqyda" -->

---
title: Can’t SSH Into Fargate? Use ECS Exec. | daily.dev
description: Fargate containers lack traditional SSH access, but ECS Exec offers a way to debug running containers without exposing SSH. The walkthrough covers configuring...
canonical: https://daily.dev/posts/can-t-ssh-into-fargate-use-ecs-exec--lnt5aqyda
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Can’t SSH Into Fargate? Use ECS Exec. | daily.dev
og:description: Fargate containers lack traditional SSH access, but ECS Exec offers a way to debug running containers without exposing SSH. The walkthrough covers configuring...
og:url: https://daily.dev/posts/can-t-ssh-into-fargate-use-ecs-exec--lnt5aqyda
og:image: https://api.daily.dev/og/posts/Lnt5aQydA.png
og:image:alt: Can’t SSH Into Fargate? Use ECS Exec.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Can’t SSH Into Fargate? Use ECS Exec.

**[DevOps Daily](https://daily.dev/sources/devopsdaily)** · [@divyansh30](https://daily.dev/divyansh30) · 1 min read · 0 upvotes · 0 comments

## Summary

Fargate containers lack traditional SSH access, but ECS Exec offers a way to debug running containers without exposing SSH. The walkthrough covers configuring ECS Exec for tasks in private subnets, including required IAM permissions, SSM connectivity, and VPC endpoints, plus how to automate the setup with Terraform.

## Content

Fargate doesn't give you the traditional SSH workflow.

When a running container needs debugging, **ECS Exec** provides a way to access it without exposing SSH.

Things get more interesting when the task runs in a private subnet—you need the right IAM permissions, SSM connectivity, and VPC endpoints.

This walkthrough shows how to configure ECS Exec and automate the setup with Terraform.

[https://www.kubeblogs.com/use-ecs-exec-to-access-fargate-containers-with-terraform/](https://www.kubeblogs.com/use-ecs-exec-to-access-fargate-containers-with-terraform/)

**How do you debug Fargate containers in production?**

#DevOps #PlatformEngineering #AWS #ECS #Fargate #Terraform #Cloud

## Similar posts on daily.dev

- [Demystifying AWS ECS: The Pragmatic Architect’s Guide to Container Orchestration](https://daily.dev/posts/demystifying-aws-ecs-the-pragmatic-architect-s-guide-to-container-orchestration-wiihehet7) · Medium · 0 upvotes · 0 comments
- [What is AWS Fargate for Amazon ECS?](https://daily.dev/posts/what-is-aws-fargate-for-amazon-ecs--snrsrdaxv) · Last9 · 0 upvotes · 0 comments
- [Deploying Temporal Workers to Amazon ECS](https://daily.dev/posts/deploying-temporal-workers-to-amazon-ecs-icu7xznab) · Temporal · 0 upvotes · 0 comments
- [One pod, one node: The architecture behind serverless Kubernetes on AWS](https://daily.dev/posts/one-pod-one-node-the-architecture-behind-serverless-kubernetes-on-aws-r5lybvbpm) · The New Stack · 1 upvotes · 0 comments
- [Amazon ECS now automatically detects and repairs container instances with impaired agent connectivity](https://daily.dev/posts/amazon-ecs-now-automatically-detects-and-repairs-container-instances-with-impaired-agent-connectivit-g0mb41ppe) · AWS · 0 upvotes · 0 comments

---

Tags: [#aws](https://daily.dev/tags/aws), [#devops](https://daily.dev/tags/devops), [#terraform](https://daily.dev/tags/terraform)

[View this post on daily.dev](https://daily.dev/posts/can-t-ssh-into-fargate-use-ecs-exec--lnt5aqyda)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/can-t-ssh-into-fargate-use-ecs-exec--lnt5aqyda","headline":"Can’t SSH Into Fargate? Use ECS Exec.","text":"Fargate containers lack traditional SSH access, but ECS Exec offers a way to debug running containers without exposing SSH. The walkthrough covers configuring ECS Exec for tasks in private subnets, including required IAM permissions, SSM connectivity, and VPC endpoints, plus how to automate the setup with Terraform.","url":"https://daily.dev/posts/can-t-ssh-into-fargate-use-ecs-exec--lnt5aqyda","datePublished":"2026-09-21T09:24:47.720Z","dateModified":"2026-09-21T09:25:05.402Z","author":{"@type":"Person","name":"Divyansh","url":"https://daily.dev/divyansh30","image":"https://media.daily.dev/image/upload/s--f9lbkpFv--/f_auto/v1744873189/avatars/avatar_JMQ4qarKTe7zPurSPRrzM","description":"Aspiring engineer with an interest in AI, tech and DevOps :)","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":1090}},"image":"https://media.daily.dev/image/upload/s--J70Ksa4e--/f_auto/v1789798158/posts/bcOv9znFs?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/devopsdaily","name":"DevOps Daily"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DevOps Daily","item":"https://daily.dev/squads/devopsdaily"},{"@type":"ListItem","position":3,"name":"Can’t SSH Into Fargate? Use ECS Exec."}]}
```

