3
$\begingroup$

I need to access a bucket to put and get a few files, is there any nice way to do this in Mathematica?

$\endgroup$
5
  • 1
    $\begingroup$ Short of implementing the AWS auth flow / SOAP interface, probably best is to download the Java libraries that AWS provides and run those via JLink. $\endgroup$
    – b3m2a1
    Nov 15, 2017 at 21:51
  • 1
    $\begingroup$ A ServiceConnect for aws would be nice $\endgroup$
    – M.R.
    Nov 15, 2017 at 21:53
  • 1
    $\begingroup$ I've thought about it, but it'll take time to understand the AWS auth-framework and implement the requisite flow. If I used AWS I'd do it, but since I don't I haven't (yet) really felt like doing it. $\endgroup$
    – b3m2a1
    Nov 15, 2017 at 21:56
  • $\begingroup$ use RunProcess[] reference.wolfram.com/language/ref/RunProcess.html with aws-cli? $\endgroup$ Nov 15, 2017 at 23:13
  • 1
    $\begingroup$ Deprecated AWSLink do not work in V12. But for referente: mathematica.stackexchange.com/questions/168057 $\endgroup$
    – Murta
    Apr 12, 2020 at 2:52

1 Answer 1

1
$\begingroup$

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.

$\endgroup$
2
  • $\begingroup$ Thanks but this is already known, looking for a real not theoretical answer. $\endgroup$
    – M.R.
    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
    Aug 12, 2020 at 12:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.