1 Answer
- Newest
- Most votes
- Most comments
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
Relevant content
- asked 6 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 6 months ago