by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 18:56

    skmcgrail on SmithyAPIClient

    aws/external: fix dropped error… (compare)

  • 18:56
    skmcgrail closed #659
  • 18:45
    skmcgrail synchronize #659
  • 18:13
    skmcgrail commented #659
  • 18:11
    skmcgrail edited #659
  • 18:10
    skmcgrail synchronize #659
  • Aug 06 21:26
    skmcgrail review_requested #664
  • Aug 06 18:32
    jasdel commented #592
  • Aug 06 18:24
    jasdel unlabeled #592
  • Aug 06 00:00
    jasdel closed #167
  • Aug 06 00:00
    jasdel commented #167
  • Aug 05 22:59
    jasdel closed #642
  • Aug 05 22:59
    jasdel commented #642
  • Aug 05 22:57
    jasdel closed #468
  • Aug 05 22:57
    jasdel commented #468
  • Aug 05 22:57
    jasdel converted_to_draft #380
  • Aug 05 22:56
    jasdel closed #447
  • Aug 05 22:56
    jasdel commented #447
  • Aug 05 22:53
    jasdel edited #659
  • Aug 05 22:53
    jasdel edited #659
Kai Hendry
@kaihendry
@jasdel hope you can also follow up on https://github.com/aws/aws-sdk-go-v2/issues/108#issuecomment-361805644 ... not sure why you can't reproduce the issue.
Joe Cotroneo
@jocot
Hey does anyone know if resuming multipart uploads across sessions is possible/planned for aws-sdk-go-v2 ? I'm looking to build the functionality if it doesnt exist, as I haven't been able to find support for this feature as yet.
Kai Hendry
@kaihendry
@joeco317 i'd suggest creating an issue about it https://github.com/aws/aws-sdk-go-v2/issues
Joe Cotroneo
@jocot
Thanks Kai, have created an issue.
Jason Del Ponte
@jasdel
@kaihendry glad to help were able for SDK functionality and feature support. With that said the SDKs are built on models provided by the service teams. The service teams define those models and provide it to us. The SDKs teams them selves may not have a comprehensive understanding of the service APIs and its policy capabilities. The best place to find information about specific service capabilities is the services' forums, API reference guide, or stack overflow.
Kai Hendry
@kaihendry
@jasdel wouldn't it be cool if you acted as a central place to sort out such issues?
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"