seza

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
in reply to: Amazon S3 Add-on Lists Bucket but nothing else #23040

seza
Member

I do need to sleep some times or I start using wrong files:
As I suspected issue we are having related to S3 Class, it would be nice to actually see errors displayed. In a nutshell here is error code you get when you try to get, post or do anything with Bucket:
`PermanentRedirect The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.

“Amazon S3 supports virtual-hosted-style and path-style access in all Regions. The path-style syntax, however, requires that you use the region-specific endpoint when attempting to access a bucket. For example, if you have a bucket called mybucket that resides in the EU, you want to use path-style syntax, and the object is named puppy.jpg, the correct URI is http://s3-eu-west-1.amazonaws.com/mybucket/puppy.jpg. You will receive a “PermanentRedirect” error, an HTTP response code 301, and a message indicating what the correct URI is for your resource if you try to access a non US Standard bucket with path-style syntax using:
http://s3.amazonaws.com

A different Region endpoint than where the bucket resides, for example, http://s3-euwest-1.amazonaws.com and the bucket was created with the location constraint of Northern-California”

Endpoint used by the s3 class is s3.amazonaws.com, change it to the region of your bucket and it should work.

P.S. Honestly re-code it with AWS PHP SDK you would have less issues with customers.

in reply to: Amazon S3 Add-on Lists Bucket but nothing else #23039

seza
Member

No, no response. Interesting thing none of the test code I placed in the plugin php file did not return. Moreover from looking at the code I realized that s3 plugin just outputs all the files in the directory flat, which is not what I need, so I have to use JQuary tree and re-code server-side for use with AWS PHP SDK, which WPDM does not use, that might be the issue. AWS does not return calls on depreciated API.

in reply to: Amazon S3 Add-on Lists Bucket but nothing else #22494

seza
Member

Policy template used:
{
“Statement”: [
{
“Effect”: “Allow”,
“Action”: “s3:ListAllMyBuckets”,
“Resource”: “arn:aws:s3:::*”
},
{
“Effect”: “Allow”,
“Action”: “s3:*”,
“Resource”: [
“arn:aws:s3:::%bucketname%”,
“arn:aws:s3:::%bucketname%/*”
]
}
]
}

Website is not in production and not accessible to public. Shoot me the IP address that I could white list.

Viewing 3 posts - 1 through 3 (of 3 total)