getting message: forbidden reply from AWS API gateway

前端 未结 20 1115
鱼传尺愫
鱼传尺愫 2020-11-30 04:34

I am trying to create a lambda service on AWS and have it accessed from outside via the API gateway with no authentication or restriction required.

To make things ea

20条回答
  •  鱼传尺愫
    2020-11-30 05:06

    I got {"message":"Forbidden"} on an API with EndpointConfiguration set to PRIVATE, and a VpcEndpoint created for it in the Vpc's private subnets (this is an inter-service API)

    The reason I got {"message":"Forbidden"} was that I was under the impression I should use one of the VpcEndpoint's urls. The URL to use is still the one associated with the stage (in ApiGateway console). It is:

    https://${RestApiId}.execute-api.${Region}.amazonaws.com/${StageName}

提交回复
热议问题