Thread overview | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
June 26, 2016 AWS SDK | ||||
---|---|---|---|---|
| ||||
Is there an AWS library in the works for D? It's seriously the main blocker for me to push adoption of the language internally. If not, I can try to invest time into making one, but I could use help. (fyi, there's one in the works for Rust: https://github.com/rusoto/rusoto) |
June 27, 2016 Re: AWS SDK | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jadbox | On Sunday, 26 June 2016 at 23:06:02 UTC, Jadbox wrote: > Is there an AWS library in the works for D? It's seriously the main blocker for me to push adoption of the language internally. > > If not, I can try to invest time into making one, but I could use help. > > (fyi, there's one in the works for Rust: https://github.com/rusoto/rusoto) http://forum.dlang.org/post/jqotefrswxhaiqteefdq@forum.dlang.org |
June 27, 2016 Re: AWS SDK | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jadbox | On Sunday, 26 June 2016 at 23:06:02 UTC, Jadbox wrote: > Is there an AWS library in the works for D? It's seriously the main blocker for me to push adoption of the language internally. > > If not, I can try to invest time into making one, but I could use help. > > (fyi, there's one in the works for Rust: https://github.com/rusoto/rusoto) what services do you need? the important bits, such as auth are around, but you likely need to implement some stuff for yourself. we have an incomplete s3 libary with https://github.com/tamediadigital/vibe-s3 there is also some code for kinesis and dynamo around but its likely outdated. |
June 27, 2016 Re: AWS SDK | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jadbox | On Sunday, 26 June 2016 at 23:06:02 UTC, Jadbox wrote: > Is there an AWS library in the works for D? It's seriously the main blocker for me to push adoption of the language internally. > > If not, I can try to invest time into making one, but I could use help. > > (fyi, there's one in the works for Rust: https://github.com/rusoto/rusoto) The C++ SDK appears to use a Java generator, maybe you can make it work for D since it is quite close to C++ (but probably a lot of work): https://github.com/aws/aws-sdk-cpp/tree/master/code-generation https://aws.amazon.com/blogs/aws/introducing-the-aws-sdk-for-c/ |
June 27, 2016 Re: AWS SDK | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jadbox | On 6/26/2016 4:06 PM, Jadbox via Digitalmars-d wrote: > Is there an AWS library in the works for D? It's seriously the main > blocker for me to push adoption of the language internally. > > If not, I can try to invest time into making one, but I could use help. > > (fyi, there's one in the works for Rust: https://github.com/rusoto/rusoto) I have some old code here: https://github.com/braddr/downloads.dlang.org/tree/master/src It has sig v2 signing and some s3 object related code. Super minimal and sig v2 is out of date (though still very usable, in most aws regions). Ideally, someone would partner with aws -- there's a developer tools forum -- to add D to the suite of languages. I'm fairly sure they code generate at least a large part of the tool kits from the api definitions for each of the tons of services. Trying to manage them all by hand is a loosing battle. I've been tempted to do this a couple times, but the time investment would likely be more than I'm willing to spend. |
June 27, 2016 Re: AWS SDK | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Roberts | On Monday, 27 June 2016 at 17:53:32 UTC, Brad Roberts wrote:
> https://github.com/braddr/downloads.dlang.org/tree/master/src
>
> It has sig v2 signing and some s3 object related code. Super minimal and sig v2 is out of date (though still very usable, in most aws regions).
>
> Ideally, someone would partner with aws -- there's a developer tools forum -- to add D to the suite of languages. I'm fairly sure they code generate at least a large part of the tool kits from the api definitions for each of the tons of services. Trying to manage them all by hand is a loosing battle.
>
> I've been tempted to do this a couple times, but the time investment would likely be more than I'm willing to spend.
Yep, the sdk would need to be autogenerated from their spec files. I use a great number of services from s3, Kinesis, SQS, SNS, Redshift, DynamoDB, EC2 cmds, Route 53 reconfiguring. This is a common story for most cloud developers. With the advent of microservices, it's a relatively easy sell to get developers to try a new language for a small service, but most of these services rely on cloud drivers.
|
June 27, 2016 Re: AWS SDK | ||||
---|---|---|---|---|
| ||||
On 6/27/16 10:53 AM, Brad Roberts via Digitalmars-d wrote:
> On 6/26/2016 4:06 PM, Jadbox via Digitalmars-d wrote:
>> Is there an AWS library in the works for D? It's seriously the main
>> blocker for me to push adoption of the language internally.
>>
>> If not, I can try to invest time into making one, but I could use help.
>>
>> (fyi, there's one in the works for Rust: https://github.com/rusoto/rusoto)
>
> I have some old code here:
>
> https://github.com/braddr/downloads.dlang.org/tree/master/src
>
> It has sig v2 signing and some s3 object related code. Super minimal and sig v2 is out of date
> (though still very usable, in most aws regions).
>
> Ideally, someone would partner with aws -- there's a developer tools forum -- to add D to the suite
> of languages. I'm fairly sure they code generate at least a large part of the tool kits from the
> api definitions for each of the tons of services. Trying to manage them all by hand is a loosing
> battle.
>
> I've been tempted to do this a couple times, but the time investment would likely be more than I'm
> willing to spend.
I've started talking with a few of the aws sdk engineers (some of who I worked with when I was there) today about their sdk and the tooling involved. It might not be a horrible job to add another language to the mix. I'm going to meet with them and dig through some of the tooling to get a better feel for it.
Later,
Brad
|
October 18, 2017 Re: AWS SDK | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Roberts | On Tuesday, 28 June 2016 at 00:36:31 UTC, Brad Roberts wrote:
> On 6/27/16 10:53 AM, Brad Roberts via Digitalmars-d wrote:
>> On 6/26/2016 4:06 PM, Jadbox via Digitalmars-d wrote:
>>> [...]
>>
>> I have some old code here:
>>
>> https://github.com/braddr/downloads.dlang.org/tree/master/src
>>
>> It has sig v2 signing and some s3 object related code. Super minimal and sig v2 is out of date
>> (though still very usable, in most aws regions).
>>
>> Ideally, someone would partner with aws -- there's a developer tools forum -- to add D to the suite
>> of languages. I'm fairly sure they code generate at least a large part of the tool kits from the
>> api definitions for each of the tons of services. Trying to manage them all by hand is a loosing
>> battle.
>>
>> I've been tempted to do this a couple times, but the time investment would likely be more than I'm
>> willing to spend.
>
> I've started talking with a few of the aws sdk engineers (some of who I worked with when I was there) today about their sdk and the tooling involved. It might not be a horrible job to add another language to the mix. I'm going to meet with them and dig through some of the tooling to get a better feel for it.
>
> Later,
> Brad
Hi Brad,
Do we have any good update on this?
I'm writting my devops tools in Dlang now (Golang is too hot to use, isn't it:D). It's a great win if we can have AWS SDK support.
I'm not a master however if there is any thing I can help, please let me know.
Thanks for your reading.
|
October 17, 2017 Re: AWS SDK | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ky-Anh Huynh |
On 10/17/2017 6:32 PM, Ky-Anh Huynh via Digitalmars-d wrote:
> On Tuesday, 28 June 2016 at 00:36:31 UTC, Brad Roberts wrote:
>> On 6/27/16 10:53 AM, Brad Roberts via Digitalmars-d wrote:
>>> On 6/26/2016 4:06 PM, Jadbox via Digitalmars-d wrote:
>>>> [...]
>>>
>>> I have some old code here:
>>>
>>> https://github.com/braddr/downloads.dlang.org/tree/master/src
>>>
>>> It has sig v2 signing and some s3 object related code. Super minimal and sig v2 is out of date
>>> (though still very usable, in most aws regions).
>>>
>>> Ideally, someone would partner with aws -- there's a developer tools forum -- to add D to the suite
>>> of languages. I'm fairly sure they code generate at least a large part of the tool kits from the
>>> api definitions for each of the tons of services. Trying to manage them all by hand is a loosing
>>> battle.
>>>
>>> I've been tempted to do this a couple times, but the time investment would likely be more than I'm
>>> willing to spend.
>>
>> I've started talking with a few of the aws sdk engineers (some of who I worked with when I was there) today about their sdk and the tooling involved. It might not be a horrible job to add another language to the mix. I'm going to meet with them and dig through some of the tooling to get a better feel for it.
>>
>> Later,
>> Brad
>
> Hi Brad,
>
> Do we have any good update on this?
>
> I'm writting my devops tools in Dlang now (Golang is too hot to use, isn't it:D). It's a great win if we can have AWS SDK support.
>
> I'm not a master however if there is any thing I can help, please let me know.
>
> Thanks for your reading.
Unfortunately, I haven't made the time. Too much contract work being thrown my way for the last year or so.
|
October 18, 2017 Re: AWS SDK | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ky-Anh Huynh | On Wednesday, 18 October 2017 at 01:32:51 UTC, Ky-Anh Huynh wrote: > On Tuesday, 28 June 2016 at 00:36:31 UTC, Brad Roberts wrote: >> On 6/27/16 10:53 AM, Brad Roberts via Digitalmars-d wrote: >>> On 6/26/2016 4:06 PM, Jadbox via Digitalmars-d wrote: >>>> [...] >>> >>> I have some old code here: >>> >>> https://github.com/braddr/downloads.dlang.org/tree/master/src >>> >>> It has sig v2 signing and some s3 object related code. Super minimal and sig v2 is out of date >>> (though still very usable, in most aws regions). >>> >>> Ideally, someone would partner with aws -- there's a developer tools forum -- to add D to the suite >>> of languages. I'm fairly sure they code generate at least a large part of the tool kits from the >>> api definitions for each of the tons of services. Trying to manage them all by hand is a loosing >>> battle. >>> >>> I've been tempted to do this a couple times, but the time investment would likely be more than I'm >>> willing to spend. >> >> I've started talking with a few of the aws sdk engineers (some of who I worked with when I was there) today about their sdk and the tooling involved. It might not be a horrible job to add another language to the mix. I'm going to meet with them and dig through some of the tooling to get a better feel for it. >> >> Later, >> Brad > > Hi Brad, > > Do we have any good update on this? > > I'm writting my devops tools in Dlang now (Golang is too hot to use, isn't it:D). It's a great win if we can have AWS SDK support. > > I'm not a master however if there is any thing I can help, please let me know. > > Thanks for your reading. Hi, for an inhouse project I developed a generator which generates based on the API definitions from here https://github.com/aws/aws-sdk-js/tree/master/apis classes for the services and structures for the input/output requests. auto client = new AwsClient(); auto dynamoDBService = new DynamoDBService(client); CreateTableInput request = { tableName: "zapp-test1", provisionedThroughput: { readCapacityUnits: 1, writeCapacityUnits: 1 }, attributeDefinitions: [ {attributeName: "A", attributeType: ScalarAttributeType.S}, {attributeName: "B", attributeType: ScalarAttributeType.S} ], keySchema: [ {attributeName: "A", keyType: KeyType.HASH} ] }; dynamoDBService.createTable(request); Actually the generated classes do not call AWS directly but uses the AWS console client. Unfortunately the generator is proprietary. The good thing is, it was easily written within 4-5 hours. PS. Almost every service was working out of the box except EMR. There is a difference between the EMR commands / parameters in the API definitions and in the AWS console client. Kind regards André |
Copyright © 1999-2021 by the D Language Foundation