by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 02 22:29
    skotambkar synchronize #631
  • Jul 02 20:15
    skotambkar edited #631
  • Jul 02 20:14
    skotambkar review_requested #631
  • Jul 02 20:10
    skotambkar review_requested #631
  • Jul 02 20:05
    skotambkar opened #631
  • Jul 02 17:38
    skotambkar synchronize #597
  • Jul 02 16:25
    skotambkar review_requested #597
  • Jul 02 16:25
    skotambkar synchronize #597
  • Jul 02 15:56
    skotambkar synchronize #597
  • Jul 02 08:25
    skotambkar synchronize #597
  • Jul 01 22:18
    skmcgrail edited #630
  • Jul 01 22:18
    skmcgrail opened #630
  • Jul 01 21:32

    jasdel on SmithyAPIClient

    Override IdempotencyTokenProvid… (compare)

  • Jul 01 20:26
    JordonPhillips synchronize #599
  • Jul 01 20:05
    cure opened #629
  • Jul 01 19:20
    jasdel edited #628
  • Jul 01 18:12
    jasdel synchronize #628
  • Jul 01 18:09
    jasdel synchronize #628
  • Jul 01 00:53
    jasdel review_requested #628
  • Jul 01 00:53
    jasdel review_requested #628
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
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