by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 02:17
    jay-dee7 closed #392
  • 01:18
    jasdel review_requested #634
  • 01:18
    jasdel review_requested #634
  • 01:18
    jasdel review_requested #634
  • 01:18
    jasdel opened #634
  • Jul 08 21:19
    JordonPhillips synchronize #599
  • Jul 08 20:05
    JordonPhillips review_requested #632
  • Jul 08 17:37
    aggagen synchronize #601
  • Jul 08 16:55
    JordonPhillips closed #633
  • Jul 07 23:33
    JordonPhillips synchronize #633
  • Jul 07 23:27
    JordonPhillips edited #633
  • Jul 07 23:22
    JordonPhillips edited #633
  • Jul 07 23:22
    JordonPhillips review_requested #633
  • Jul 07 23:22
    JordonPhillips opened #633
  • Jul 07 22:09

    jasdel on master

    Fix typo in error message (#629… (compare)

  • Jul 07 22:09
    jasdel closed #629
  • Jul 07 22:09
    jasdel commented #629
  • Jul 07 21:41
    JordonPhillips review_requested #632
  • Jul 07 21:25
    JordonPhillips review_requested #632
  • Jul 07 21:25
    JordonPhillips opened #632
Kai Hendry
@kaihendry
jumping hoops on services' forums, API reference guide, or stack overflow kindof sucks
and my employ is an AWS enterprise customer. Dealing with support also sucks.
https://github.com/aws/aws-sdk-go-v2/issues could be a central place to co-ordinate and sort out things.
Or you can tell customers to "go away" ;) "go away" === the disparity of " services' forums, API reference guide, or stack overflow"
Jason Del Ponte
@jasdel
Thanks for the feedback @kaihendry The reason I suggested using the AWS forums is that the forums provide a per service focus. If the SDK's github issues were used as a central place for all 132 AWS services that the SDKs support it would be overwhelming for users of the SDK that are looking for an answer/feature about the SDK or even a service. Tags are one way to mitigate this, but i'm not sure that scales very well for the number of AWS services the SDK supports.
Kai Hendry
@kaihendry
I personally find the forums a bit overwhelmingly bad
Kai Hendry
@kaihendry
I'm doing http fetches from S3, but I am hitting SlowDown: Please reduce your request rate.
Can I use the SDK to perform unauthenticated requests from S3 I wonder? that are able to backoff automatically? cc @jasdel
Jon Boone
@jonBoone
greetings. I'm attempting to use Kinesis Video Streams and want to fetch a fragment of video. I'm creating a Kinesis Video Media client with a config that sets a custom endpoint to the data endpoint requested from the Kinesis Video Stream client. Yet, when I do a /getMedia, the result is a 403 Forbidden. Any insights?
Joey Miller
@joeymill_twitter
Im trying to create a custom credential Providers, Anyone have any direction to docs? V1 of sdk allows this. Seems like only way is a GoPlugin?
Jason Del Ponte
@jasdel
@joeymill_twitter both v1 and v2 allow custom credential providers to be defined. in V1 you'd need to satisfy the credenitals.Provider interface and create a credentials.Credentials value with that provider. v2 simplifies this by only having
aws.CredentialsProvider interface. Creating a type that satisfies this interface and assigning it to the Config.Credentials
Joey Miller
@joeymill_twitter
@jasdel Thanks!
Kai Hendry
@kaihendry
@jasdel I'm looking for a API example so I can skip asking a user where their bucket is location RE https://github.com/aws/aws-sdk-go-v2/issues/137#issuecomment-378089731
Kai Hendry
@kaihendry
Is it possible to search s3 objects by tag?
Jason Del Ponte
@jasdel

@kaihendry sorry missed your earlier request sorry, does the

cfg, err := external.LoadDefaultAWSConfig()

bucket := "my-bucket"
region, err := s3manager.GetBucketRegion(ctx, cfg, bucket, "us-west-2")
if err != nil {
    if aerr, ok := err.(awserr.Error); ok && aerr.Code() == "NotFound" {
         fmt.Fprintf(os.Stderr, "unable to find bucket %s's region not found\n", bucket)
    }
    return err
}
fmt.Printf("Bucket %s is in %s region\n", bucket, region)

example not work for you?

@kaihendry as for searching for objects by tag, I don't think so, at least I'm not finding a way to do it via the standard ListObjects APIs.
Jason Del Ponte
@jasdel
You can request that feature by submitting feedback to the S3 API reference docs though, Use the Feedback button in the bottom right corner.
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