I am new to AWS and currently trying to implement the following.
I have an API server which sits in an EC2 instance. I would like to implement some filtering and rerouting mechanism for 2 sets of clients:
- Public.
- Clients with specific IP range.
What I want is to allow public access to everyone and be redirected to /public
when they access my server. While the specific clients will be rerouted to /specific
when they access my server. Public clients will not be allowed to access /specific
since it is intended only to specific clients with specific IPs, however the reverse should be possible - specific clients should be allowed access to /public
.
I believe the rerouting part is possible using target groups + application load balancer. I also considered using Nginx, however, I am not sure where to go from this point on.