0

Recently I am trying to use api for trading without much knowing about the theories. And successfully create a working function and deployed it in aws lambda . Now I am trying some another exchanges and their api creation forms have place for ip address .

I tried searching on internet about this, but did not find anything. I think the request need to send from the ip address.

Can someone tell me how to tackle this problem. Can I simply change something in lambda and do the thing??

3
  • How did it go? The issue still persists? Commented Apr 20, 2021 at 2:38
  • @Marcin I setup everything from this article. Now I have some questions. 1. How to check if my function always send via exact ip?? 2. My lambda already have a api gateway trigger, can I add another events trigger?? 3. To create another lambda do I need to create another vpc or can I use this vpc and eip??? Commented Apr 22, 2021 at 14:22
  • I would suggest making new question for your new questions. Commented Apr 22, 2021 at 14:24

1 Answer 1

2

Can I simply change something in lambda and do the thing??

You have to setup a VPC with private subnet and a NAT gateway in a public subnet if you don't have such VPC already. Then you associate your lambda function with the private subnet.

This way your lambda function will access the external api using the NAT. The good thing about NAT is that it has static public IP which you can whitelist at your API provider.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.