Tuesday, February 6, 2024

[SOLVED] Amazon CloudSearch throws HTTP 403 on document upload

Issue

I am trying to integrate Amazon CloudSearch into SilverStripe. What I want to do is when the pages are published I want a CURL request to send the data about the page as a JSON string to the search cloud.

I am using http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html#uploading-data-api as a reference.

Every time I try to upload it returns me a 403. I have allowed the IP address in the access policies for the search domain as well.

I am using this as a code reference: https://github.com/markwilson/AwsCloudSearchPhp

I think the problem is the AWS does not authenticate correctly. How do I correctly authenticate this?


Solution

this never worked for me. and i used the Cloudsearch terminal to upload files. and php curl to search files.



Answered By - nivanka
Answer Checked By - Willingham (WPSolving Volunteer)