You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there!
S3 class is just amazing but I'm really interested in setting it into "dryer" and more straightforward approach by transforming it in a Trait.
Anyone did that already?
I'm trying for now and I got some pitfalls such as "non constructor" and "non constant attributes" nature of Traits.
At first shoot I could get some basic stuff such as listing buckets, but for now I'm not able to create neither upload to it.
By looking the following error message we can figure it out some clues:
S3::putBucket(locals-bucket, public-read, ): [AccessDenied] Anonymous access is forbidden for this operation in...
It seems that there's no defined valid S3 credentials!
Once there's no construct function in Traits, I just setted both key and secret in a regular function, but it does not seem to work ;(
Well...that's it, any ideas will be highly appreciated. Cheers!
The text was updated successfully, but these errors were encountered:
Just got it! Since a long time actually...nothing to die for but works properly.
All that I did consists in create a kinda "wrapper" helper class which provides access to main methods such as "auth", "putObject" and "listBuckets". Later I create a Trait which wrapps a intance of my brand new S3Helper class. Finally I can use it into any regular class to access S3 API.
Hi there!
S3 class is just amazing but I'm really interested in setting it into "dryer" and more straightforward approach by transforming it in a Trait.
Anyone did that already?
I'm trying for now and I got some pitfalls such as "non constructor" and "non constant attributes" nature of Traits.
At first shoot I could get some basic stuff such as listing buckets, but for now I'm not able to create neither upload to it.
By looking the following error message we can figure it out some clues:
It seems that there's no defined valid S3 credentials!
Once there's no construct function in Traits, I just setted both key and secret in a regular function, but it does not seem to work ;(
Well...that's it, any ideas will be highly appreciated. Cheers!
The text was updated successfully, but these errors were encountered: