by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 13 22:56
    jasdel synchronize #634
  • Jul 13 21:22
    JordonPhillips synchronize #638
  • Jul 13 21:17
    JordonPhillips review_requested #638
  • Jul 13 21:17
    JordonPhillips opened #638
  • Jul 13 21:17
    JordonPhillips review_requested #638
  • Jul 13 17:21

    JordonPhillips on SmithyAPIClient

    Add version range for aws trait… Add support for json rpc protoc… Support json rpc deser and 13 more (compare)

  • Jul 13 17:21
    JordonPhillips closed #599
  • Jul 10 22:00
    skmcgrail converted_to_draft #636
  • Jul 10 21:41
    cure labeled #637
  • Jul 10 21:41
    cure opened #637
  • Jul 10 21:25
    skmcgrail opened #636
  • Jul 10 09:15
    heartwilltell opened #635
  • Jul 10 01:59
    famartinez80 commented #115
  • Jul 10 00:41
    JordonPhillips synchronize #599
  • Jul 09 02:17
    jay-dee7 closed #392
  • Jul 09 01:18
    jasdel review_requested #634
  • Jul 09 01:18
    jasdel review_requested #634
  • Jul 09 01:18
    jasdel review_requested #634
  • Jul 09 01:18
    jasdel opened #634
  • Jul 08 21:19
    JordonPhillips synchronize #599
Kai Hendry
@kaihendry
@jasdel morning, I was hoping there was a smarter API to find the bucket's region. I don't want to iterate through all the regions ideally!
Kai Hendry
@kaihendry
ctx := aws.BackgroundContext() <--- whatever that means
Harry
@harrisonturton
Are there any good tutorials for the serverless framework + Go?
I've been going through https://serverless-stack.com/ but I'm finding a bit hard to apply to the Go SDK
Sohail Najar
@sohailnajar
Hello, noob question but is there any api docs like https://docs.aws.amazon.com/sdk-for-go/api/ for v2
I for some reason can not find it
@harrisonturton i use apex/apex up for my golang functions
Kai Hendry
@kaihendry
@jasdel for interfacing with Aurora, I just use the standard https://github.com/go-sql-driver/mysql right?
Jason Del Ponte
@jasdel
@kaihendry thanks for the update yeah aws.BackgroundContext() is the SDK's version of context.Background() this is a carry over from V1 which needed to be backwards compatible with older version of Go.
@kaihendry correct, a standard SQL driver should be the best way to connect with Aurora. I think there is also a postgres compatible server as well as MySQL.
Kai Hendry
@kaihendry
@jasdel thanks for the reply!
Wrote a lambda to pull something out a Aurora DB over here btw: https://github.com/unee-t/go-list-units/blob/master/main.go Wonder where I can go to get a code review. ;)
Sohail Najar
@sohailnajar
@kaihendry thanks
Jason Del Ponte
@jasdel

@kaihendry thanks for sharing. Minor feedback i'd have is the suggestion of instead of using two different endpoints /listhtml and /listjson use the same endpoint e.g. /list and either use the Accept-Encoding request header to determine the requested format, or use an extension on the resource like /list.json. Mainly this suggestion is just for simplicity of the API given the two endpoints really do the same thing just output formatted differently.

Here is a common example, https://reddit.com/r/aws will return HTML whereas https://reddit.com/r/aws.json will return json data. Reddit only supports the ".json" extension method, though. But would be nice to support at least one of the two patterns.

Kai Hendry
@kaihendry
@jasdel thanks for the feedback!
Kai Hendry
@kaihendry
@jasdel hopefully you can get a look in on aws/aws-sdk-go-v2#170 since I'm stuck with that.
Kai Hendry
@kaihendry
also wondering how I should handle the Aurora user/pass DB credentials. Ideally from a lambda role, it could look up it's credentials without specifying a user/pass
Dustin Camilleri
@deesee04
hi all. any examples of assuming an iam role w/ sdk v2? the examples provided in the documentation do not work. a related open issue already exists, but with no activity: aws/aws-sdk-go-v2#157
Jason Del Ponte
@jasdel
@deesee04 and @kaihendry thanks for the pings on those issues. We're working through the backlog of issues we have and will provide updates to these questions/issues. For #157 I agree moving the example out of a doc string and into an example file. for #170 i think we'll need to dive more into the API to understand how to use this feature.
Renato Marinho
@renatomarinho
This message was deleted
Kai Hendry
@kaihendry
@renatomarinho don't see how it's related. mark as spam?
wondering how to get account info from the AWS SDK v2. Just want the account number.
Kai Hendry
@kaihendry
aha sts.GetCallerIdentityInput
Kai Hendry
@kaihendry
@jasdel instead of hard coding an account number in my SNS publish ... TopicArn: aws.String("arn:aws:sns:ap-southeast-1:123456789:atest"), .. can I somehow avoid enter the account number? "123456789"
Jason Del Ponte
@jasdel
thanks for the feedback @kaihendry. When writing the examples we generally use the req variable name as shorthand for the returned request value. You're correct that when using two examples within the same function one of the two's req variable name will need to be updated to an alternative name. in your example something like pubReq.
Kai Hendry
@kaihendry
@jasdel and is there way of avoiding putting the account number in sns arns and such? saving me a call to sts get identity?
Sohail Najar
@sohailnajar
could someone point me to an example of pagination in v2. I am trying to fetch list of accounts using orgnisation
also i am not sure why i am getting error on setting MaxResults params := &organizations.ListAccountsInput{MaxResults:int64(100)}
Jason Del Ponte
@jasdel
@kaihendry I'm not sure about for SNS. In some AWS apis a - can be used instead, but if the API is requiring the ARN, then I think you're required to get the account number.
Kai Hendry
@kaihendry
I don't understand SQS. My expectation was that multiple consumers simultaneously could consume a SQS queue.
However as you can see from my video link, the receivers seem to at least interfere with the console monitor.
https://s.natalian.org/2018-05-25/sqs-receiver-blocking.mp4
soup
@feartomorrow_twitter
Is there a preferred way to only invoke external.LoadDefaultAWSConfig() once? Global var and then invoke needed svcs with it?
Jason Del Ponte
@jasdel
@kaihendry Reading SQS messages generally are only read by a single client, (unless configured differently) When the console is involved, it is just another client, and may only know that a message was "In flight" but not be able to see that actual content of the message.
@feartomorrow_twitter using a global var is one way if the config is loaded within the application's main and never modified again. If a service needs a specific configuration, such as alternative Region, make sure to call the aws#Config.Copy method to get a copy of the Config value before modifying it for that specific service.
Ivan
@advancedwebdeveloper
@advancedwebdeveloper
Greetings, people. Anybody wishing to speak for the Ukrainian Golang user group, on June 14th? https://www.facebook.com/events/244424652981728/
about the SDK
considering either remote or on-site speakers
alikor
@alikor
can anyone point me to the documentation of this sdk v2 specificaly calling a aws lambda function
Renato Marinho
@renatomarinho
This message was deleted
Kai Hendry
@kaihendry
whoa, this is big news https://blog.golang.org/go-cloud
Kai Hendry
@kaihendry
Jason Del Ponte
@jasdel
Thanks for linking that @kaihendry go-cloud only supports the V1 AWS SDK for Go. Since the V2 SDK is still in preview this makes sense. I imagine a future version of go-cloud could support the v2 SDK once v2 is production ready.
Kai Hendry
@kaihendry
@jasdel wasn't there a trick to get detailed error responses...can't recall
RE permission errors
Kai Hendry
@kaihendry
@jasdel how do I get CredentialsChainVerboseErrors working in v2? Oh damn, here it is aws/aws-sdk-go-v2#98
Kai Hendry
@kaihendry
@jasdel you might find https://youtu.be/GXCFMxQ2tp4 fun
Kai Hendry
@kaihendry
@jasdel is there a good API to track when a forecast increases ? i.e. event upon it
(a billing forcast)
Kai Hendry
@kaihendry