---
title: "Discussion on \"Run ECS Fargate tasks without a public IP using a NAT Gateway\" | Hashnode"
description: "Discussion on \"Run ECS Fargate tasks without a public IP using a NAT Gateway\". Move an ECS Fargate service into private subnets, turn off auto-assign public IP, and route outbound traffic through a NAT Gateway so every call leaves from one fixed Elastic IP."
url: "https://hashnode.com/posts/ecs-fargate-private-subnet-nat-gateway/6a8d8cc16a34468764183590"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Run ECS Fargate tasks without a public IP using a NAT Gateway](https://notes.sohag.pro/ecs-fargate-private-subnet-nat-gateway?utm_source=hashnode&utm_medium=feed)

Move an ECS Fargate service into private subnets, turn off auto-assign public IP, and route outbound traffic through a NAT Gateway so every call leaves from one fixed Elastic IP.

Aug 25 · 5 min read · notes.sohag.pro  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#devops](https://hashnode.com/tag/devops)
-   [#cloud-computing](https://hashnode.com/tag/cloud-computing)
-   [#networking](https://hashnode.com/tag/networking)
-   [#containers](https://hashnode.com/tag/containers)

## Written by

[Sohag Hasan](https://hashnode.com/@sohag)

@sohag · Dhaka, Bangladesh

  
[View profile](https://hashnode.com/@sohag)

Tech Lead at MobyPay | Certified Laravel Developer | PHP JS GO | DevOps Enthusiast | Open to projects

WhoAmI =&gt; notes.sohag.pro/author

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
