1 個回答
- 最新
- 最多得票
- 最多評論
0
As of 8/2023, AppSync does not support HTTP resolvers to VPC endpoints.
However, there is a clear and well-defined pattern for accessing VPC endpoints using Lambda resolvers. A Lambda function connected to the VPC will basically proxy the AppSync requests and allow AppSync to fetch data from any VPC endpoints.
High level steps To access Amazon VPC resources from an AWS AppSync GraphQL API, follow these steps:
- Create an AWS Lambda function to run inside the same Amazon VPC as the resources that you want to access.
- Create an AWS AppSync API, and then attach the Lambda function as the data source.
- Configure the AWS AppSync API schema.
- Attach either a Lambda resolver or a direct Lambda resolver to the target GraphQL field.
- Test the GraphQL field.
Please see this guide for more detailed steps: https://repost.aws/knowledge-center/appsync-access-private-resources-in-vpc
已回答 9 個月前
相關內容
- 已提問 10 個月前
- 已提問 7 個月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前