1. Subin Subash
  2. PowerBuilder
  3. Thursday, 2 January 2020 16:56 PM UTC

Hi ,

 

Is it possible to copy files from AWS S3 bucket to our local system using PowerBuilder 2019 ?

 

Currently we are using AWS CLI command to copy files from AWS S3 bucket to local system.

 

If possible then which version of PowerBuilder will support this feature - (Cloud Edition / Standard Edition) ?

 

 

Can you please help me ASAP.. Currently I am using Standard Edition ..

 

 

 

Thanks & Regards,

Subin Subash

Subin Subash Accepted Answer Pending Moderation
  1. Monday, 13 January 2020 10:54 AM UTC
  2. PowerBuilder
  3. # 1

Hi Mike,

 

    Thank you so much for your help... I am trying with your suggestions . 

 

  One more Question ?

  Can I run Command Prompt and command from PowerBuilder.

For example below command will help me to copy files from S3 bucket to local system...

aws s3 cp  s3://source_path/ d:\destination_path\ --recursive.

 

I can write this above command in batch file and I can call batch file from PB . Can I call Command prompt and above command at the same time from powerbuilder ?

Comment
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Monday, 6 January 2020 17:29 PM UTC
  2. PowerBuilder
  3. # 2

use the rest api for S3:

https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html

 

I did this for azure blob services and the process is similar.

 

also see:

https://community.appeon.com/index.php/qna/q-a/need-info-on-how-to-access-aws-s3-from-pb

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 6 January 2020 17:14 PM UTC
  2. PowerBuilder
  3. # 3

Hi Subin ;

  That would be the only avenue that I can think of from a PB "Standard" based App. However, I believe that AWS also now supports call CLI commands via RESTFul web services. If that is truly the case (I do not have much information that aspect), that might be something to look in to.

Regards ... Chris

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 2 January 2020 17:22 PM UTC
  2. PowerBuilder
  3. # 4

Hi Subin;

    Looks like (my guess) calling this MS-Windows command line interface from a PB App (via  a RUN command) should also be able to invoke CLI commands as well ...

https://aws.amazon.com/cli/

HTH

Regards ... Chris

Comment
  1. Subin Subash
  2. Monday, 6 January 2020 06:46 AM UTC
Hi Chris,

Thank you for your reply..

Currently I am using CLI command in MS- windows command line to copy file from S3 bucket to local system..

Actually I need to avoid AWS CLI command dependency and I am trying to create the same from PB.

Is it possible from PB (Clod Edition / Standard Edition )



Regards,

Subin
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.