AWS API Gateway as a proxy to AppSync

Create API in API Gateway
Create graphql resource under root (/) path
Create POST method and setup AWS Service integration
// Note: Please replace AWS Account Number and AppSync API ID in the below policy// Policy Begin{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"appsync:GraphQL"
],
"Resource": [
"arn:aws:appsync:us-east-1:{AWS-Account-Number}:apis/{AppSync-API-ID}/*"
],
"Effect": "Allow"
}
]
}
// Policy End
AWSIntegration complete
Create POST method and setup HTTP integration
HTTP Integration complete

Learn something new every day — Cheers!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store