This shows some of the things you might encounter when using the AWS API Gateway to call a Lambda function that accesses an RDS database. It can be really hard to troubleshoot and understand why things are not working.
Event properties:
{
resource: '',
path: '',
httpMethod: '',
headers: null,
queryStringParameters: null,
pathParameters: null,
stageVariables: null,
requestContext:
{
path: '',
accountId: '',
resourceId: '',
stage: '',
requestId: '',
identity:
{
cognitoIdentityPoolId: null,
accountId: '',
cognitoIdentityId: null,
caller: '',
apiKey: '',
sourceIp: '',
accessKey: '',
cognitoAuthenticationType: null,
cognitoAuthenticationProvider: null,
userArn: '',
userAgent: '',
user: ''
},
resourcePath: '',
httpMethod: 'GET',
apiId: ''
}
body: null,
isBase64Encoded: false
Watch video Tips and Tricks: API Gateway, Lambda, RDS online without registration, duration hours minute second in high quality. This video was added by user MartyAWS 27 December 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,832 once and liked it 19 people.