AWS Discussion Forum

Full Version: Restricting to resources with valid token using API Gateway and cognitos
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Able to get Frontend/login authenticated with the Cognito and APIGateway authorizes and redirects if it contains valid token.
I am pretty new to this tech stack so please don't judge me for this question.
 All examples out there creates the API in the API gateway. But, how to use Kubernetes services as the rest api endpoints in the API Gateway?

Appreciate any help here, thanks!
(16-04-2020, 12:43 AM)Shreyah Wrote: [ -> ]All examples out there creates the API in the API gateway. But, how to use Kubernetes services as the rest api endpoints in the API Gateway?

Whenever you want to connect other resources like EC2s or containers as the backend for your API created via the API GW, all you need to do is add the backend target as your Load balancer. Your EC2s/containers will in all likelihood be behind the ELB. Below is the link to just one of the ways you can achieve this.

https://docs.aws.amazon.com/apigateway/l...nsole.html