• AWS

    From saito@saitology9@gmail.com to comp.lang.tcl on Fri Apr 12 20:06:38 2024
    From Newsgroup: comp.lang.tcl

    Are there any working examples of integrating with Amazon AWS and
    specifically S3? I am thinking of putting data files in and out of S3.

    Any tips to recent examples or packages would be appreciated.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From saito@saitology9@gmail.com to comp.lang.tcl on Fri Apr 12 21:08:24 2024
    From Newsgroup: comp.lang.tcl

    On 4/12/2024 8:06 PM, saito wrote:
    Are there any working examples of integrating with Amazon AWS and specifically S3?  I am thinking of putting data files in and out of S3.

    Any tips to recent examples or packages would be appreciated.

    I found S3 in tclllib which seems helpful. Any working examples?
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Ashok@apnmbx-public@yahoo.com to comp.lang.tcl on Sat Apr 13 16:13:59 2024
    From Newsgroup: comp.lang.tcl

    On 4/13/2024 6:38 AM, saito wrote:
    On 4/12/2024 8:06 PM, saito wrote:
    Are there any working examples of integrating with Amazon AWS and
    specifically S3?  I am thinking of putting data files in and out of S3.

    Any tips to recent examples or packages would be appreciated.

    I found S3 in tclllib which seems helpful.  Any working examples?

    See https://github.com/jerily/aws-sdk-tcl
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From saito@saitology9@gmail.com to comp.lang.tcl on Sat Apr 13 16:55:48 2024
    From Newsgroup: comp.lang.tcl

    On 4/13/2024 6:43 AM, Ashok wrote:
    On 4/13/2024 6:38 AM, saito wrote:
    On 4/12/2024 8:06 PM, saito wrote:
    Are there any working examples of integrating with Amazon AWS and
    specifically S3?  I am thinking of putting data files in and out of S3. >>>
    Any tips to recent examples or packages would be appreciated.

    I found S3 in tclllib which seems helpful.  Any working examples?

    See https://github.com/jerily/aws-sdk-tcl

    Thanks for the link. There is no documentation on the package and the
    s3 example has no comments at all. Well, some code lines are commented
    out. I am afraid to spend time on it if it has no documentation.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Gerald Lester@Gerald.Lester@gmail.com to comp.lang.tcl on Sat Apr 13 16:14:39 2024
    From Newsgroup: comp.lang.tcl

    On 4/13/24 15:55, saito wrote:
    On 4/13/2024 6:43 AM, Ashok wrote:
    On 4/13/2024 6:38 AM, saito wrote:
    On 4/12/2024 8:06 PM, saito wrote:
    Are there any working examples of integrating with Amazon AWS and
    specifically S3?  I am thinking of putting data files in and out of S3. >>>>
    Any tips to recent examples or packages would be appreciated.

    I found S3 in tclllib which seems helpful.  Any working examples?

    See https://github.com/jerily/aws-sdk-tcl

    Thanks for the link.  There is no documentation on the package and the
    s3 example has no comments at all.  Well, some code lines are commented out. I am afraid to spend time on it if it has no documentation.

    Well you could always write a wrapper around the AWS CLI commands --
    should be straight forward to do.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From saito@saitology9@gmail.com to comp.lang.tcl on Sat Apr 13 18:06:41 2024
    From Newsgroup: comp.lang.tcl

    On 4/13/2024 5:14 PM, Gerald Lester wrote:

    Well you could always write a wrapper around the AWS CLI commands --
    should be straight forward to do.

    Right, it may come to that. I will find time to check out the the s3 in
    tcllib and see if it is any useful first. I trust the stuff in tcllib a
    bit more.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Ashok@apnmbx-public@yahoo.com to comp.lang.tcl on Sun Apr 14 12:59:35 2024
    From Newsgroup: comp.lang.tcl

    On 4/14/2024 2:25 AM, saito wrote:
    On 4/13/2024 6:43 AM, Ashok wrote:
    On 4/13/2024 6:38 AM, saito wrote:
    On 4/12/2024 8:06 PM, saito wrote:
    Are there any working examples of integrating with Amazon AWS and
    specifically S3?  I am thinking of putting data files in and out of S3. >>>>
    Any tips to recent examples or packages would be appreciated.

    I found S3 in tclllib which seems helpful.  Any working examples?

    See https://github.com/jerily/aws-sdk-tcl

    Thanks for the link.  There is no documentation on the package and the
    s3 example has no comments at all.  Well, some code lines are commented out. I am afraid to spend time on it if it has no documentation.

    Well, there is this - https://github.com/jerily/aws-sdk-tcl?tab=readme-ov-file#documentation.
    If you follow the links there, it enumerates commands in each module.
    Maybe you were looking for more. It is admittedly sparse. I think the
    intent is to refer back to the AWS docs for the equivalent command,
    either C or command line. For example, to use the Tcl S3 related
    commands listed at https://github.com/jerily/aws-sdk-tcl/tree/main/src/aws-sdk-tcl-s3 you
    would refer to https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/index.html#cli-aws-s3api
    and / or https://docs.aws.amazon.com/cli/latest/userguide/cli_s3_code_examples.html

    A bit tedious but (not to speak for the author!) it is very onerous to (re)document such a large wrapped API.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From neophytos@neophytos@gmail.com (neophytos) to comp.lang.tcl on Wed Apr 17 13:11:11 2024
    From Newsgroup: comp.lang.tcl

    Sorry, I was not following the discussion earlier. Just released 1.0.4, which supports credentials in config dict and trace var in create client command.

    # specify "dir" and "bucket_name" vars and then:

    set config_dict [dict create aws_access_key_id "" aws_secret_access_key "" region "us-east-1"]
    ::aws::s3::create $config_dict s3_client

    # put some text into a file named text.txt
    $s3_client put_text $bucket_name "test.txt" "Hello World"

    # download that file
    $s3_client get $bucket_name "test.txt" myfile.txt

    # upload a file
    $s3_client put $bucket_name "my_logo.png" [file join $dir "logo_to_be_uploaded.png"]

    # download the file
    ::aws::s3::get $s3_client $bucket_name "my_logo.png" [file join $dir "saved_logo.png"]

    I understand that building aws-sdk-cpp on which aws-sdk-tcl relies is not the easiest of tasks.

    If you need further info, please do not hesitate and let me know.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From neophytos@neophytos@gmail.com (neophytos) to comp.lang.tcl on Sun Apr 21 11:58:55 2024
    From Newsgroup: comp.lang.tcl

    Added multiple S3 examples with comments here: https://github.com/jerily/aws-sdk-tcl/tree/main/src/aws-sdk-tcl-s3/examples

    I will do the same for the rest of the modules in aws-sdk-tcl (dynamodb, sqs, lambda, and so on).
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From saito@saitology9@gmail.com to comp.lang.tcl on Wed Apr 24 17:24:06 2024
    From Newsgroup: comp.lang.tcl

    On 4/17/2024 9:11 AM, neophytos wrote:
    Sorry, I was not following the discussion earlier. Just released 1.0.4, which supports credentials in config dict and trace var in create client command.

    ...

    I understand that building aws-sdk-cpp on which aws-sdk-tcl relies is
    not the easiest of tasks.

    If you need further info, please do not hesitate and let me know.

    Thank you. This is helpful. I don't have time at the moment to make
    progress on this topic but I will return to it in a month or so.
    --- Synchronet 3.20a-Linux NewsLink 1.114