Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 24 13:00
    milosgajdos labeled #1076
  • Jan 24 13:00
    milosgajdos opened #1076
  • Jan 24 12:56
    milosgajdos commented #1075
  • Jan 24 12:47
    milosgajdos closed #1075
  • Jan 24 12:46
    milosgajdos opened #1075
  • Jan 23 16:25
    shaftoe edited #1074
  • Jan 23 16:24
    shaftoe edited #1074
  • Jan 23 13:26
    shaftoe labeled #1074
  • Jan 23 13:26
    shaftoe opened #1074
  • Jan 23 01:47
    nddeluca opened #1073
  • Jan 23 01:00
    jasdel review_requested #1071
  • Jan 23 00:38
    jasdel synchronize #1071
  • Jan 23 00:38

    jasdel on fixup

    codegen: Fixup JSON RPC client … regenerate api clients skip incorrect serialization te… and 1 more (compare)

  • Jan 23 00:05
    skmcgrail edited #1072
  • Jan 23 00:04
    skmcgrail opened #1072
  • Jan 23 00:03

    skotambkar on main

    Adds endpoint resolver helpers … (compare)

  • Jan 23 00:03
    skotambkar closed #1066
  • Jan 23 00:01
    jasdel synchronize #1071
  • Jan 23 00:01

    jasdel on fixup

    codegen: Fixup JSON RPC client … regenerate api clients add changenotes (compare)

  • Jan 22 23:15
    jasdel review_requested #1071
Vlad Ungureanu
@ungureanuvladvictor
Hey folks, any idea when support for ec2:DescribeInstanceTypes will land in the v2 sdk ?
foxroot
@foxroot

when initiating an aws session and I've got MFA enabled on my account with MFA serial number in the credentials file I'm getting an error

panic: failed to load config, token provider required for AssumeRole with MFA

when I disable MFA and remove the MFA serial from the credentials, it works. Does this mean MFA is not currently supported?

Daniel Mangum
@hasheddan
Hey folks! Wondering if anyone has experience using aws-sdk-go-v2 to assume a role using web identity tokens? It appears as though it has been enabled here (aws/aws-sdk-go#2667) but not yet in v2 (https://github.com/aws/aws-sdk-go-v2/issues/475). However, I believe it should be possible to do manually with the sts client.
cc @jasdel
Daniel Mangum
@hasheddan
^ follow-up on above, I was able to get this working manually, and hopefully will be able to get it contributed back upstream to make it more seamless for others in the future :)
Thomas Symborski
@zsiec
is anyone from AWS monitoring this chat?
George Kontridze
@gkze
Why were environemnt variable names unexported? aws/aws-sdk-go-v2#508
Ghost
@ghost~5eba03abd73408ce4fe36af4
@gkze I imagine those were unexported so that the values couldn't be tampered with after initialization.
I misread the patch, that is interesting
overmetal61
@overmetal61
Question: Is basic functionality for endpoint IoT (MQTT pub/sub) support via aws-sdk-go-v2? Example (https://github.com/aws/aws-iot-device-sdk-python/blob/master/samples/basicPubSub/basicPubSub.py) That example is pretty easy to follow, but I get lost trying to find similar API calls in aws-sdk-go-v2
Callum Dempsey Leach
@mmacheerpuppy
Hey guys, I've never ever been able to get the conditional expression for the AWS V1 SDK to work with updates. Is this something that people have experienced issues with and is resolved in the v2?
gkhnoisgtht
@gkhnoisgtht
Are you able to pass the secret key and access key instead of loading from the environment? if so is there an example?
for go v2 sdk
rfc2119
@rfc2119
AWS gophers, I have found a non-working example in API v1 for ec2 DescribeSpotPriceHistory. It is not found in v2. Should I PR the v1 API ?
Jasdeep Singh
@jay-dee7
guys do we have way to send a filter while fetching secrets from aws secrets manager? i see v1 has it but v2 doesnt
Ward Vandewege
@cure
@gkhnoisgtht yeah I do something like this:
cfg := defaults.Config()

creds := aws.NewChainProvider(
    []aws.CredentialsProvider{
      aws.NewStaticCredentialsProvider(AccessKey, SecretKey, AuthToken),
      ec2rolecreds.New(ec2metadata.New(cfg)),
    })

cfg.Credentials = creds

svc := s3.New(cfg)
Kai Hendry
@kaihendry
Since upgrading v2 I'm hitting this error=EC2RoleRequestError: no EC2 instance role found ... not sure why
Kai Hendry
@kaihendry
rfc2119
@rfc2119

In the example for the NewDescribeInstancesPaginator (and probably all paginators):

p := ec2.NewDescribeInstancesRequestPaginator(req)

should be

p := ec2.NewDescribeInstancesPaginator(req)

It's not critical. Should I open an issue ?

Ian Childress
@ianchildress
wow, v0.25.0 and v.0.26.0 are a real pain in the ass. this is going to take days of team effort to fix all the breaking changes. it's not even a single breaking change, there are MANY breaking changes. not happy.
Ghost
@ghost~5f79d98cd73408ce4ff0a51f
v0.26.0 missing paginator for the s3 apis or am I missing something
Ichinose Shogo
@shogo82148
An issue for paginators is here aws/aws-sdk-go-v2#439 but I don't know its status...
Erik Müller
@asterikx

Hi there, can anyone show me how to create a presigned upload url using v0.26.0 that I can then distribute to web clients to upload images to s3? Previously I had:

req, _ := svc.GetObjectRequest(&s3.GetObjectInput{
    Bucket: aws.String("MY_BUCKET"),
    Key:    aws.String("a-key"),
})
return req.Presign(300*time.Second)

In v0.26.0 the GetObjectRequest has been removed. There is only GetObject but that one does not return a request object ready to be signed. I appreciate any help!

Иван Сердюк
@oceanfish81_twitter
Is there any was to build the whole SDK project (with all dependencies) inside a VM, by not involving containers?
Ichinose Shogo
@shogo82148
Are AWS engineers on Gitter?
Ben Waters
@thebenwaters
Anyone have ideas on this?
github.com/aws/aws-sdk-go-v2/aws/endpoints: module github.com/aws/aws-sdk-go-v2@latest found (v0.26.0), but does not contain package github.com/aws/aws-sdk-go-v2/aws/endpoints
Ichinose Shogo
@shogo82148
Ben Waters
@thebenwaters
Thanks @shogo82148
Jeff
@jcarter3
so as of v0.26.0, all paginators are gone?
Promaethius
@Promaethius
@thebenwaters do you have a working example on using endpoints?
Jeff
@jcarter3
what version were you using when the endpoints did work?
Promaethius
@Promaethius
I'm used to the v1 sdk where the endpoint resolver is passed as a function in with a general config, trying to migrate
rfc2119
@rfc2119
v0.26.0 breaks a lot of stuff. Since this chat room is not active, anyone know where do gophers using the SDK hang out ?
Jeff
@jcarter3
@rfc2119 yes it does... took a couple days to fix all the errors (though my project is probably not normal)
Alban B
@aboitier_gitlab
@rfc2119 good question
ranamuerta
@ranamuerta
is v.0.29.0 safe to use? i have many middleware dependency issues.
../../../../pkg/mod/github.com/aws/aws-sdk-go-v2/service/sts@v0.29.0/api_op_AssumeRole.go:326:2: undefined: "github.com/aws/aws-sdk-go-v2/aws/middleware".AddRequestInvocationIDMiddleware
Dre
@dre2004
is "github.com/aws/aws-sdk-go-v2/aws/external" broken? I get ain.go:8:2: module github.com/aws/aws-sdk-go-v2@latest found (v0.29.0), but does not contain package github.com/aws/aws-sdk-go-v2/aws/external or is the documentation out of date?
Ichinose Shogo
@shogo82148
which documentation?
AWS introduced big breaking changes into v0.25.0. aws/external is renamed to aws/config. https://github.com/aws/aws-sdk-go-v2/blob/master/CHANGELOG.md#relocated-packages
I guess a lot of it seems out of date, the config package isn't there
Ichinose Shogo
@shogo82148
yes, it is out of date. it looks that it doesn't contain the changes of v0.25.0. v0.25.0 breaks many and many things...
JaeHoon Kim
@LumpKim
Hello, I have a question about types.BucketLocationConstraint.
When I call s3.Client.GetBucketLocation and print s3.GetBucketLocationOutput.BucketLocationConstraint, it shows nothing.
Is there any solutions? aws-sdk-go-v2 documentation always says about v1!
Jeff
@jcarter3
@LumpKim i don't believe there is a workaround for this yet, I think it's broken at the generation-via-smithy level
JaeHoon Kim
@LumpKim
Thanks @jcarter3
Andy Spence
@AndySpe85815249_twitter
Not getting this example snippet: aws.EndpointResolverFunc(func(service, region string) (aws.Endpoint, error) {} - service does not have a Type ? https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/endpoints/
This-Is-Not-Brad
@This-Is-Not-Brad
I'm having great difficulty getting v4 signing working since the 0.25.0 changes. Doing a basic GET to an IAM authorised Lambda. Are their any updated examples? All the documentation\resources I can find appear to be for <0.25.0
Julio Chana
@jchanam
Hi!
I'm developing some tools with the SDK and I'd like to know if there's documentation in some places about the possible errors that a call could give. I'm using the errors.As to check if the error given is a specific one but sometimes I can't know the kind to expect.
1 reply