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
질문됨 일 년 전465회 조회
1개 답변
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
답변함 일 년 전
  • 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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠