Hello, I am using Amazon S3_IS to write and read objects in AWS S3 Bucket.
But I am having the empty output list when I call the Objects_List action. All objects are in bucket not in any folder. I also tried c# code with integration studio but still recieving the empty lists.
May be I am missing some access settings from aws. Please anyone has experience related this.
Thank you
I see. You were trying to see the result of Objects_List in the debugger right? This is not working. The debugger will always show an empty list. This is due to the asynchronous behaviour of server actions in client actions. In order to "see" the result of it you have to assign the result to a local variable and display (e.g. in a table) the result on the screen.
Only if you "use" the result it will get evaluated.
In regards to your GetPresignedUrl call. That one is not complete. You have to add a HTTP Verb in order to work. For displaying a video GET.
Please note that your shared OML does contain access key and secret access key. I suggest you rotate the keys.
Best
Stefan
Hi Sanjay,
What Forge asset are you using? There are a number of Amazon S3 assets, so it's important to know the right one.
Hi,
I am using the Amazon Simple Storage Service (S3).
Hey,
to List objects in a bucket the ListBucket permission is required targeting a single bucket resource or any.
I have add the AmazonS3FullAccess permission policy. I can't read any single(Object GetPreSignedUrl action) or list object(s3_list object action) from bucket.
Sanjay.
It might help for you to explain a little further. Here are some ideas for further information:
What happens when you attempt to read or list those objects? Is there an error message, if so what is the error message. Is there no error message?
What connection settings and/or access keys are you using?
Which user was the FullAccess permission policy applied to? It should be at least the programmatic access user.
I hope this helps.
Kind regards,
Stuart
Still sounds like a permission issue (although the FullAcesss grants you everything). You can test your permissions using the Policy Simulator. https://policysim.aws.amazon.com/
Test it with your credentials to see if there are blocking policies.
Thanks for the reply, I have tested the simulator and check the getobject and listBucket aciton with user(who has AmazonS3FullAccess). The permission shows "allowed".
Thanks for your reply. When I call the listOjects action then it gives the empty files output without error. and when I call the Object_GetPreSignedUrl action it shows the error "Object reference not set to an instance of object".
The user has programmatic access, I am using the user client id and sectet to call the object put and object list action.
Can you share the OML?
Thank you for the explaination. It worked for me.
And I deleted the comment where I share the oml as it contains the secret key.
Excellent. If you want to add a CDN to your S3 Store for serving videos you will find a howto on my medium blog here https://medium.com/itnext/serve-files-at-scale-with-outsystems-and-aws-s3-and-cloudfront-6f0b11a37866
Although you deleted the post i strongly recommend to generate new keys.