To migrate from on-prem running containers, to go to Fargate, I'd humbly recommend to use ECS Compose-X which will deal with (almost ?) everything for you. If you haven't defined your services in docker-compose files yet, I'd highly recommend to do so, which will allow you to then run
ecs-compose-x up [...]. This will generate all the CFN templates that you need to deploy to AWS to run on ECS, defaulting with using Fargate instead of EC2.
If you already have a VPC or an ECS cluster, that's fine too, it can discover such resources and just use them to deploy the services onto.
I would imagine you already have created IAM policies for your services locally to work if you needed these, so just make sure to set these policies in x-iam.Policies and they will be applied to your service task role.
Now networking wise, to allow your frontend to find your backend, you can define x-route53 and/or (not mutually exclusive) to create DNS records pointing at your services. For ingress, I would imagine you need a load-balancer, which is what x-elbv2 will do for you: it will create the load-balancer, the listeners, the routing rules and link everything to your services. It will also respect the least privileges access and open security groups between the load-balancer and your services accordingly.
Hope this helps your transition to running on ECS!
Hi AWS, this is the current architecture diagram
Ques: If an external system(kind of contact us form hosted somewhere outside not on-premise) is needed to connect to the ALB in Aws to reach the Java fargate ecs —-what are the things to consider and open and consider also the vpc endpoint?
Also I need expertise in order to optimize this workflow diagram following the concept of Well Architected Framework (WAF).
Best approach to migrate 3 tier angular java and db2 to AWS server less architectureasked 4 months ago
Moving to ECS-Fargate from EC2asked 6 months ago
RDS DB migrations using ECS and Fargateasked 3 years ago
Resource Utilization for Fargate ECSAccepted AnswerMODERATORasked 2 years ago
Overriding Hostname on ECS FargateAccepted Answerasked 6 months ago
SSM agent failing on Fargate with ecs execasked 2 months ago
Architecture for multi-region ECS applicationasked 3 months ago
Deploy an app having Frontend in Angular and Backend in Java on Fargate ECS.asked 5 days ago
Deploy on ECS Fargate Container from on-premiseasked 21 hours ago
Are there any best practices for sending logs from ECS on EC2, ECS on Fargate and other AWS services such as API GW, load balancers (and more AWS services) to Splunk?asked 5 months ago