On EC2 server we have different instances of the same API hosted on different port. Like
http://localhost:9000/api/v1/customer
http://localhost:9001/api/v1/customer
http://localhost:9002/api/v1/customer
These endpoints are not exposed publicly. But each endpoint is unique to our client.
Now our clients wants to access customer
information using REST API. So i am trying to use AWS API Gateway
to create publicly exposed REST API. Idea is to once the authenticated request is received from the client then just passthrough the request to proper endpoint.
I have created IAM
user for each client so each client has its own access key
and secret key
. Then in AWS API Gateway console
i have created a new REST API, Configure Method Request
to use AWS_IAM
authorization. Now i have to configure Integration Request
.
How do i choose proper endpoint based on IAM user in Integration Request
?