Getting {"message":"Missing Authentication Token"}"

0

I set up a Rest API with resource, 'ANY' method and stage. The Lambda function was tested and the API method GET (integration request type: Lambda_proxy) , and they both returned the list i need from a bucket. But when i try to access the API which does not require key, it is set to: "false", I keep getting this message: "{"message":"Missing Authentication Token"}". I looked around for the same problem, saw a similar one but no one ever solved his problem asked 5 months ago.

P.S. There is an IAM role attached to the Lambda function with a AmazonS3ReadOnlyAccess and i even added an additional "bucket_allow" ( the bucket is public).

{ "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::name_of_bucket" } ] }

  • How are you using the URL (VPC Endpoint or The stage url)? Is it a private API Gateway o public?

profile picture
demandé il y a un an465 vues
1 réponse
0

You must verify if the URL is as stated in the documentation for Public AWS API Gateway: https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-call-api.html

If it's private AWS API Gateway, then you must verify which method you've used and verify its connectivity: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-private-api-test-invoke-url.html

AWS
vtjean
répondu il y a un an
  • I was using the stage url and it was set to private, i believe i tried public too. I am new at this so ill verify the documentation, thank you.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions