- Newest
- Most votes
- Most comments
Hello.
Using EC2 or ECS can be more expensive than Lambda because you need to keep servers and containers running even when the API is not running.
Even if you use EC2 or ECS, you will need a NAT Gateway to fix the IP address, so I don't think the settings for the network part are much different from Lambda.
I also need to proxy maybe with a vpn so that I can access the vendor's developer portal which needs to request to come from static ips as well.
I believe that users access the management portal using a browser, but is this correct?
I believe that Lambda is used to execute APIs provided by vendors.
In that case, it is also possible to install AWS ClientVPN or OpenVPN on the user's PC and access it via AWS's NAT Gateway.
You can provide your users with static IP addresses through ClientVPN by setting up a configuration similar to the one described in the blog "Client VPN to Internet" below.
https://aws.amazon.com/jp/blogs/networking-and-content-delivery/using-aws-client-vpn-to-scale-your-work-from-home-capacity/
Relevant content
- Accepted Answer
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
I created a simple configuration diagram. To summarize, it looks like the following, but as you can see, the configuration around the VPC is the same whether you use API Gateway or ECS. Therefore, if the API is not planned to be executed that much, I think a configuration using API Gateway and Lambda will be cheaper than EC2 or ECS. https://aws.amazon.com/fargate/pricing/?nc1=h_ls https://aws.amazon.com/lambda/pricing/?nc1=h_ls
Hi,
Thanks for your detailed answer. I'm having trouble getting open vpn to connect to my nat gateway. Are there any step by step guides for this?
Cheers,