Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 01:50
    jasdel commented #1261
  • 01:49
    jasdel review_requested #1261
  • 01:49
    jasdel review_requested #1261
  • May 15 17:54
    gsaraf commented #1253
  • May 15 16:34
    jasdel synchronize #1261
  • May 15 16:33
    jasdel edited #1261
  • May 15 16:33
    jasdel synchronize #1261
  • May 15 16:27
    jasdel synchronize #1261
  • May 15 00:13
    skotambkar commented #946
  • May 15 00:10
    jasdel synchronize #1261
  • May 15 00:08
    jasdel synchronize #1261
  • May 15 00:04
    jasdel synchronize #1261
  • May 14 23:48
    jasdel synchronize #1261
  • May 14 23:46
    jasdel synchronize #1261
  • May 14 23:43
    jasdel synchronize #1261
  • May 14 23:42
    jasdel opened #1261
  • May 14 23:23
    innovia commented #946
  • May 14 19:51
    akingscote labeled #1260
  • May 14 19:51
    akingscote opened #1260
  • May 14 18:58
    skmcgrail commented #1177
soup
@feartomorrow_twitter
works a treat, you're a mensch
Jason Del Ponte
@jasdel
awesome, let us know if you run into any other issues, or have feedback/suggests for the SDK.
soup
@feartomorrow_twitter
will do, thanks again, actually reading comments from you on caching the token from last year on the v1 sdk. Was there any motion in that direction for v2 or is it still RYO?
Jason Del Ponte
@jasdel
Correct. The SDKs don't provide a caching system for the creds or token. The V2 SDK would make a credential caching much easier as the Expires value it makes available is a time.Time instead of v1's IsExpired bool. The biggest problem with v1 and caching was that v1 didn't expose that actual time when the credentials may expire.
Kai Hendry
@kaihendry
I wonder what the UX is for + external.WithMFATokenFunc(stscreds.StdinTokenProvider),
.. there is a prompt ?
Kai Hendry
@kaihendry
@jasdel what was the reason to migrate this request model in v2? res, err := req.Send() ?
Jason Del Ponte
@jasdel
The change log provides a pretty good breakdown on why the request signatures were updated, https://github.com/aws/aws-sdk-go-v2/blob/master/CHANGELOG.md#api-request-methods
Kai Hendry
@kaihendry
@jasdel what's the typical use case for adding context? to control timeout? make it cancellable?
Kai Hendry
@kaihendry
@jasdel is it possible to have a cross account dynamodb configuration so I can specify reading say arn:aws:dynamodb:ap-southeast-1:024749985657:table/channels over arn:aws:dynamodb:ap-southeast-1:839858490418:table/channels ??
Jason Del Ponte
@jasdel
@kaihendry Sorry I don't know the answer to that questions. Asking on Stackoverflow, or the DynamoDB AWS Forums would be the best resource I can think of for that question.
Kai Hendry
@kaihendry
@jasdel oh? i thought the SDK is the best place to answer such cross account issues.
Basically I'm asking how I setup another identity in a lambda env
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.