When searching for this it yields how to do this using ECS. This requires either putting a config file in a particular directory or setting env variables, neither of which are possible when using Fargate as it's serverless.
I feel as if I'm missing something here, anyone have any ideas?
Thanks!
To run Fargate tasks in a private subnet without internet access, use VPC endpoints. VPC endpoints allow you to run Fargate tasks without granting the tasks access to the internet. The required endpoints are accessed over a private IP address.
Furthermore, ECS users deploying tasks on Fargate did not even have this option because with Fargate there are no EC2 instances you can ssh into.
If you configure your VPC with an internet gateway or an outbound-only internet gateway, Amazon ECS tasks on Fargate that are assigned an IPv6 address can access the internet. NAT gateways aren't needed.
Amazon ECS Exec allows you to access a container running on an Amazon EC2 instance or AWS Fargate using the AWS CLI. This means you don't need to use SSH with a complicated VPN setup in order to access the container in the Cloud anymore.
update As of 2018 This answer is no longer valid; You can now use private registries. see https://stackoverflow.com/a/52267257
I found http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#container_definitions
- The Fargate launch type only supports images in Amazon ECR or public repositories in Docker Hub.
Which seems to imply it's currently not supported.
The easiest workaround would be to upload a copy of the image to ECR.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With