Hi Kelly,
I’ve got Riak CS working with erlcloud, so thanks for that. It would have
taken a lot longer without your help. However, I wanted to change from using
erlcloud:put_object to using erlcloud:put_multipart_object. However, when I
make the change, I get the following error:
{error,
{error,
{aws_error,
{http_error,403,[],
"AccessDeniedAccess Denied/tmp-files/test.png"}},
[{erlcloud_s3,s3_request,9,[{file,"src/erlcloud_s3.erl"},{line,899}]},
{erlcloud_s3,s3_xml_request,8,
[{file,"src/erlcloud_s3.erl"},{line,834}]},
{erlcloud_s3,put_multipart_object,6,
[{file,"src/erlcloud_s3.erl"},{line,662}]},
{builder_web_fileupload_resource,process_post,2,
[{file,"src/builder_web_fileupload_resource.erl"},{line,43}]},
{webmachine_resource,resource_call,3,
[{file,"src/webmachine_resource.erl"},{line,186}]},
{webmachine_resource,do,3,
[{file,"src/webmachine_resource.erl"},{line,142}]},
{webmachine_decision_core,resource_call,1,
[{file,"src/webmachine_decision_core.erl"},{line,48}]},
{webmachine_decision_core,decision,1,
[{file,"src/webmachine_decision_core.erl"},{line,486}]}]}}
I tried adding an acl item to the Options list, but that didn’t seem to help.
Do you have any idea what may be causing this?
Thanks,
Lee
On 1 Apr 2014, at 16:11, Kelly McLaughlin <[email protected]> wrote:
> Lee,
>
> The erlcloud usage in the riak_test test modules might be easier to follow.
> Take a look at ./riak_test/tests/object_get_test.erl for a simple example.
> Also take a look at setup/2 in ./riak_test/src/rtcs.erl to see how the
> erlcloud configuration record is created. Hope that helps.
>
> Kelly
>
> On March 31, 2014 at 11:47:52 AM, Lee Sylvester ([email protected])
> wrote:
>
>> Hi Kelly,
>>
>> Thank you for the information. I took a look at the client test, but as it
>> uses an FSM, the continuous looping gave me a headache :-) Is there a
>> simpler test that demos this? If not, can you highlight the lines that make
>> the calls to Riak CS etc? That part evades me.
>>
>> Thanks,
>> Lee
>>
>>
>>
>> On 31 Mar 2014, at 16:09, Kelly McLaughlin <[email protected]> wrote:
>>
>>> Lee,
>>>
>>> We have a fork of erlcloud (https://github.com/basho/erlcloud) we use for
>>> testing and it can be made to work with your Riak CS cluster with
>>> relatively little pain. Look in the riak_cs repo under
>>> client_tests/erlang/ercloud_eqc.erl for some example usage. You'll probably
>>> want to set the proxy host and port and perhaps the host name if you're not
>>> using the default "s3.amazonaws.com".
>>>
>>> Kelly
>>>
>>> On March 31, 2014 at 8:44:03 AM, Lee Sylvester ([email protected])
>>> wrote:
>>>
>>>> Hi guys,
>>>>
>>>> I’m setting up my own Riak CS cluster and wanted to know what the best way
>>>> to interact with that cluster would be from an Erlang app? I’ve taken a
>>>> look at ErlCloud, but it seems I’d need to butcher it to get it to work
>>>> with a custom cluster (not Amazon’s setup).
>>>>
>>>> Thanks,
>>>> Lee
>>>> _______________________________________________
>>>> riak-users mailing list
>>>> [email protected]
>>>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com