I need to access a bucket to put and get a few files, is there any nice way to do this in Mathematica?
1 Answer
Amazon AWS publishes robust SDKs for this purpose.
Try their Boto3 SDK which is in Python: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-creating-buckets.html
You can execute Python scripts from Mathematica via https://reference.wolfram.com/language/ref/externalevaluationsystem/Python.html
To begin, you would pip install boto3 on your local computer and set up the environment. It is explained here: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html
For that matter, you could use another language of choice - see their SDK offering for Javahttps://aws.amazon.com/sdk-for-java/ which you could use via Mathematica's J/Link.
-
$\begingroup$ Thanks but this is already known, looking for a real not theoretical answer. $\endgroup$M.R.– M.R.2020-07-20 00:28:29 +00:00Commented Jul 20, 2020 at 0:28
-
$\begingroup$ OK @M.R. perhaps have a look at this post about Wolfram's AWSLink package mathematica.stackexchange.com/questions/168057/… $\endgroup$berrynice– berrynice2020-08-12 12:09:15 +00:00Commented Aug 12, 2020 at 12:09
RunProcess[]reference.wolfram.com/language/ref/RunProcess.html with aws-cli? $\endgroup$