-
Notifications
You must be signed in to change notification settings - Fork 421
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
Disable Auto-assign public IPv4 address on the public subnets #5194
Comments
It seems we can disable the assignment of the public IP on the service using...
...but this results in the creation of NAT Gateways which we do not want or need. This option...
...give us no public IPs without the creation of NAT Gateways, but it seems brittle having to hard code the subnet ids and the task then cannot connect to Secrets Manager to retrieve a secret unless (by the looks of things) we create an interface VPC endpoint for Secrets Manager. |
Ignore this. On further chatting with a colleague, we are happy with the NAT Gateways. |
Hello @WillGibson ! For a task on Fargate to pull a container image, the task must have a route to the internet. ECS has following options for the
So there are two options for disabling the step1:
also use the below
Note: When placing tasks on private subnets, Copilot provisions Option2: Using
Step2:
Points to be noted for option2:
Reference Docs:
|
Unless you make use of ECR pull thru caching, which is not a bad idea anyway with dockerhub to avoid issues with throttling pulls by source IP on it. |
We are trying to remediate the "[ECS.2] ECS services should not have public IP addresses assigned to them automatically" failed check which is being reported by AWS Trusted Adviser.
I cannot find a documented way to disable "Auto-assign public IPv4 address" from the environment manifest.
Is this possible at all?
If not, maybe this is a feature request?
The text was updated successfully, but these errors were encountered: