Hey,
would love your help understand the tests that are running in the end of this lab, I have don’t this lab 3 times and each time I get the same error in the end:
API Gateway did not trigger Lambda as expected. Response: {"message":"Missing Authentication Token"}
In the process of this task I was able to set up the codecommit, push the current files, set up a empty lambda, configure the code build and pipeline so the lambda was updated with the new code. and set up the API gateway to trigger the lambda, I have test multiple time the invoke, from the api console and from the lambda trigger console, both ways I get the message and 200 status from the lambda. I set up only one trigger for the lambda.
Attaching few screenshots:
API console test option:
Using the API endpoint link in the lambda’s triggers tab:
Open this page:
The permissions on the resource based:
{
"Version": "2012-10-17",
"Id": "default",
"Statement": [
{
"Sid": "8a38ea3b-72fc-59c4-9303-5a7d3d4311c4",
"Effect": "Allow",
"Principal": {
"Service": "apigateway.amazonaws.com"
},
"Action": "lambda:InvokeFunction",
"Resource": "arn:aws:lambda:us-east-1:533266994003:function:datacenter-lambda-function",
"Condition": {
"ArnLike": {
"AWS:SourceArn": "arn:aws:execute-api:us-east-1:533266994003:xn9d6rp8z5/*/GET/lambda-resource"
}
}
}
}
But still get the error in the end of the lab.
So I’m not sure what is the test that being done in the end.
Any help will be great, thank!