Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECS Fargate Public IP allocation #18

Open
RoyMaunders opened this issue Mar 22, 2024 · 2 comments
Open

ECS Fargate Public IP allocation #18

RoyMaunders opened this issue Mar 22, 2024 · 2 comments
Assignees

Comments

@RoyMaunders
Copy link

We have a problem with ECS Fargate tasks being started with public IPs when it isn't necessary.

The code makes a check for NAT gateways to choose if to assign public IP. While this works for the simple case its not comprehensive and so maybe we could introduce a simple configuration value to switch on/off public IP allocation.

We have a hub and spoke style network with VPCs connected via the transit gateway. All outbound internet access is sent via a central egress vpc/subnet. So no NAT gateway in this VPC but its still a 'private' subnet.

@mlarose mlarose self-assigned this Jun 3, 2024
@mlarose
Copy link

mlarose commented Jun 6, 2024

@RoyMaunders sorry for the delay in response time.

I wonder if instead of the configuration solution, if changing the logic from detecting NAT gateways to detecting if the subnets used are routing to an Internet Gateway. Presumably, there is no such IGW in your network architecture where the Dagster Agent is deployed?

@RoyMaunders
Copy link
Author

@RoyMaunders sorry for the delay in response time.

I wonder if instead of the configuration solution, if changing the logic from detecting NAT gateways to detecting if the subnets used are routing to an Internet Gateway. Presumably, there is no such IGW in your network architecture where the Dagster Agent is deployed?

Hello @mlarose,
Thanks for taking a look. That would certainly fix our usage. You are correct in assuming there is no IGW where our dagster agent is deployed. I'd suggested a configuration setting so you wouldn't have to potentially solve the problem for other edge cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants