php - Amazon CloudSearch throws HTTP 403 on document upload -
i trying integrate amazon cloudsearch silverstripe. want when pages published want curl request send data page json string search cloud.
i using http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html#uploading-data-api reference.
every time try upload returns me 403. have allowed ip address in access policies search domain well.
i using code reference: https://github.com/markwilson/awscloudsearchphp
i think problem aws not authenticate correctly. how correctly authenticate this?
if getting following error
403 forbidden, request forbidden administrative rules.
and if sure have appropriate rules in effect, check api url using. make sure using correct endpoint. if doing batch upload api endpoint should below
your-search-doc-endpoint/2013-01-01/documents/batch
notice 2013-01-01, required part of url. api version using. cannot following though might make sense
your-search-doc-endpoint/documents/batch <- won't work
to search need hit following api
your-search-endpoint/2013-01-01/search?your-search-params
Comments
Post a Comment