-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Credential should be scoped to a valid region, not 'execute-api'. #792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is going to be a little involved. To use API Gateway with CloudSearch Domain you will have to use API Gateway as an HTTP Proxy. The endpoint you will be making requests to is the endpoint of you CloudSearch domain (eg. Here are is a more detailed list of steps: Setting up the API
Thats all you should need. Hit test and provide a query string parameter value for your query string. Note: Don't forget to enable CORS on your API Gateway API. Also your API Gateway API need not necessarily be a GET request. You can make that a POST with a JSON body and tunnel that as a GET request to your CloudSearch Domain endpoint. There's plenty of fancy stuff you can do here. Making requestsYou really don't need the SDK to make requests to your API Gateway resource endpoint. You can simply use I hope this helps explain things up a bit. I'd be happy to answer any other questions. |
Closing this issue, but feel free to comment or re-open if you have further questions. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Hi guys. I have an issue and I don't know where this problem comes from.
I'm using select2 component along with csd. Select2 component allows me to load data from an external service while I'm typing on it. The problem is that when I get the response is a success but there is no data returned and if I look into the response tab on networking option on google chrome I see this error message:
{"__type":"#SignatureDoesNotMatch","error":{"message":"[Deprecated: Use the outer message field] Credential should be scoped to a valid region, not 'execute-api'. "},"message":"Credential should be scoped to a valid region, not 'execute-api'. "}
Debbugin the sdk I found this:
So, if you look at my endpoint (https://domain.execute-api.us-west-2.amazonaws.com/dev) you will see it's updating the region with "execute-api" value instead of "us-west-2". We are using a gateway because of the CORS issue.
This is the function I'm using with select2 component.
Could someone point me a little where to find the issue?
The text was updated successfully, but these errors were encountered: