What is a reverse proxy in AWS?

How to create a proxy in API gateway?

Here are the steps to create a proxy in API Gateway.

You need to configure two methods and one integration. Method A - GET /api/resource1. Method B - POST /api/resource2. Integration C - GET /api/resource3. Now, you need to create a new target group which will be used to route requests to specific method or integration. For this you need to create a new target group which has your service methods.

Select your service method and make sure it has HTTP Method of GET. Create a new target group. Add your target group into the API Gateway target groups. Now, you need to create a new integration. This will be used to route requests to the service methods.

Select your method A and make sure it has HTTP Method of GET. Create a new integration. Add your integration into the API Gateway integrations. Now, you need to configure the proxy request on your method A, B and C. Select method A and click on "Properties". Scroll down and add "Proxy request" for method A. This will configure the proxy on method Now, select method B and click on "Properties". Scroll down and add "Proxy request" for method B. This will configure the proxy on method B. Now, select method C and click on "Properties". Scroll down and add "Proxy request" for method C. This will configure the proxy on method C. Now, this is what you get.

Can I use an API gateway as a reverse proxy?

As you can see the question is about an API gateway, which can act as a reverse proxy.

The reason I'm asking this is that I have a small application I created, that I use to manage data in my database. I wanted to be able to call this app using a different REST API instead of calling it directly using POST requests from the browser. This is what I've come up with so far:
I'll have the basic server running on port 3000, and I have two Docker images running: one for my API, the other for my basic app. The API would have it's own HTTP proxy running on port 9000 that forwards all the calls to the API, so that only the latter can receive them. However I'm not sure if this is a good idea.

Can this solution work? Is it secure? Any help is appreciated. Yes, using an API gateway does exactly what you want. You have the option to add your own listener, depending on how much security you need.

Using an API gateway like AWS API Gateway, you should be able to choose either the HTTP or HTTPS protocol (if the gateway supports both). I would recommend against using HTTP 1.0 because it will not support TLS encryption between your clients and the API gateway, however that may not be a significant issue because you are using HTTPS anyway.

To use a HTTP listener, first set the listener to accept HTTPS traffic. Then in the HTTP listener settings, select "Allow http requests". If you have an API key, you will need to provide that in the Authentication section.

Next, in your API Gateway console, create a new API. When prompted, select the Basic authorization method and give the endpoint your listening on the port where your app is listening.

What is a reverse proxy in AWS?

There are so many AWS services and such a lot of them are not explained clearly in the manuals.

For example: EC2: It's a virtual server and you can manage it in console. But in the manual they don't explain that you can use an EIP (Elastic IP) to attach a NAT to your virtual machine and you can use it as a load balancer, or simply point a public domain to it to host your app. You can also use a public IP for the load balancer.

S3: It's an object storage for your content. But in the manual they don't explain how to manage your bucket from console, how to configure the permissions, how to give read permissions to all the apps, how to set the default location for the file and so on.

RDS: It's a database service. But in the manual they don't explain how to create it, how to connect to it, how to manage it's security groups, how to create a database and so on.

This is not a new problem. There is an old saying: Documentation is for programmers, not for users.

You can find so many questions on stackoverflow about the things you can do in AWS.

Related Answers

Is a reverse proxy the same as a gateway?

I am a newbie to network and server configuration. I am w...

What are the two types of proxies?

You can use a reverse proxy for multiple reasons, but mostly it is us...

What is API gateway responsible for as reverse proxy?

Amazon's Elastic Load Balancing offers the ability to set up HTTP and HT...