Is it possible to use AWS SDK Cognito within a private subnet without internet access?

0

To set the scenario, I have applications that uses AWS SDKs like Boto3 (Python) and aws-sdk (NodeJS) that are residing within a VPC with private subnets that strictly should have no internet access, while trying to sign up and auto confirm new users in the cognito user pool.

I notice that when these application attempt to call Cognito Identity Provider services using said SDKs, the SDK client would not receive any response.

Could someone please explain why this is the case, is it only happening for Cognito Identity Providers? And given that it is a requirement that the applications should still remain within the private subnet, is there possibly a way for these applications to make use of the SDKs?

已提問 1 年前檢視次數 1685 次
1 個回答
0

You would need NAT Gateway to build this communication channel.

Private Subnet with default route to nat gateway ( Nat gateway will live in public subnet )

https://aws.amazon.com/premiumsupport/knowledge-center/nat-gateway-vpc-private-subnet/

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南