AWS Discussion Forum
Restricting to resources with valid token using API Gateway and cognitos - Printable Version

+- AWS Discussion Forum (https://letstalkaws.com)
+-- Forum: Q & A (https://letstalkaws.com/forum-10.html)
+--- Forum: Developer Help (https://letstalkaws.com/forum-24.html)
+--- Thread: Restricting to resources with valid token using API Gateway and cognitos (/thread-52.html)



Restricting to resources with valid token using API Gateway and cognitos - Shreyah - 16-04-2020

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!


RE: Restricting to resources with valid token using API Gateway and cognitos - fzs - 01-05-2020

(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/latest/developerguide/set-up-nlb-for-vpclink-using-console.html