Q: once I install the VM, how do I change the endpoint to get access to it using the S3 tools.
For example s3cmd mb s3://testbucket if I want to access the amazon cloud
what do I do to access the zettar address? s3cmd mb localhost://testbucket? not sure what the address is. Watched the video. There is a gap in the instructions I think
A: If you use a Debian derivative, in our Client bundle, the package that we have provided should automate the setup. But, if you are on a Mac or a Windows host, then we recommend you to glance s3cmd official page which has a well written tutorial.
One of the command that you need to run is s3cmd --configure in a terminal. This one will ask you the two pieces of info of your AWS S3 credentials: the access key and the secret key.
Where are the these keys for people who try to use the ZCloud sandbox and are not using Debian family of Linux distros?
All ZCloud sandbox virtual appliances come with seven pairs of test credentials of the AWS S3 format:
1ATXQ3HHA59CYF1CVS02:WQY4SrSS95pJUT95V6zWea01gBKBCL6PI0cdxeH8:joe@example.com QS6K8EVVYK46K7BV6KPD:if5Aw9bsev3E0WXX4z/JPqD8mFIhX9mENPFHog/0:keith0@gmail.com 25MJ3MOCFQV7T0V6KM9S:cEeZkcqSCTRqLeF+/5EJygE4ZgYjBXOe1sBK3r36:kiefer1@aol.com NOLN6NS4BULQIZFJDN6S:PwiimKNvv8OSz8fswKjzlC0+maRrzKXMFDvsNGmH:kelsey2@yahoo.com SCQPIFO9G397OI2MOFTS:N2W08G8LEynbAOBOZ1NbQL7f1UAs39Wg+iF8peku:kent3@msn.com 0R3E7A0GHJ3WU3QBN3ZN:7owU0fN/Jh9vLXBGYmRbAGNaxhcT5ShBEcW5P94Z:kerwin4@yahoo.com OLS1C2MC5UX3IIE0T21W:ZGGfgaCvcUT+eqnicHn5h0Txg0gMO0pd7vQM4SFE:keegan5@gmail.com
On each line, there are three strings separated by the ':' chacter. The last one is an email address. The string on the left is a test access key, and the one in the middle is a test secret key. You can pick and choose any pair as answers to the s3cmd --configure above.
Once you are done, if you are using Apple OS X or Linux, you will have a copy of .s3cfg in your home directory. Open it with an editor, and change the two lines:
host_base = hostname:8080 host_bucket = %(bucket).hostname:8080
where hostname is the hostname that you entered when you were configuring the virtual appliance after you have powered it up the first time.
By the way, if you answered the s3cmd --configure using the first pair of test credential listed above, in your .s3cfg file, you should see something like below:
[default] access_key = 1ATXQ3HHA59CYF1CVS02 acl_public = False [...] recv_chunk = 4096 secret_key = WQY4SrSS95pJUT95V6zWea01gBKBCL6PI0cdxeH8 send_chunk = 4096 [...]
Once done, you can just run s3cmd like you would normally do, e.g. to create a bucket foo, you just issue s3cmd mb s3://foo.
If you wish to see more details about how s3cmd and ZCloud sandbox interacts, use the -d option of s3cmd. Using the prior example again, you could have issued: s3cmd -d mb s3://foo instead.