Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 14:07
    jugalde-r7 commented #2352
  • Jan 31 2019 09:36
    takeyourhatoff commented #2427
  • Jan 31 2019 09:35
    takeyourhatoff commented #2427
  • Jan 30 2019 23:10
    diehlaws commented #2427
  • Jan 30 2019 23:09
    diehlaws labeled #2427
  • Jan 30 2019 23:09
    diehlaws labeled #2427
  • Jan 30 2019 21:47
    diehlaws labeled #2352
  • Jan 30 2019 21:47
    diehlaws commented #2352
  • Jan 30 2019 21:12
    diehlaws commented #2342
  • Jan 30 2019 20:58
    diehlaws assigned #2427
  • Jan 30 2019 20:54
    diehlaws unlabeled #81
  • Jan 30 2019 20:54
    diehlaws unlabeled #142
  • Jan 30 2019 20:54
    diehlaws unlabeled #618
  • Jan 30 2019 20:54
    diehlaws unlabeled #81
  • Jan 30 2019 20:54
    diehlaws unlabeled #142
  • Jan 30 2019 20:54
    diehlaws unlabeled #619
  • Jan 30 2019 20:54
    diehlaws unlabeled #628
  • Jan 30 2019 20:54
    diehlaws unlabeled #568
  • Jan 30 2019 20:54
    diehlaws unlabeled #521
  • Jan 30 2019 20:54
    diehlaws unlabeled #487
ilu123
@ilu123
hello, I have setup s3 endpoint for my VPC and I can download the file object directly via Ec2's curl without creds, then I wanna call the s3 GetObject API in the EC2 using this SDK without setting creds, but it got error: operation error S3: GetObject, failed to sign request: failed to retrieve credentials: no EC2 IMDS role found, operation error ec2imds: GetMetadata, http response error StatusCode: 404, request to EC2 IMDS failed. Can anyone help me? thanks
salim6655
@salim6655
Hi
Anyone please assiist with "func (c CloudFormation) ListStacks(input ListStacksInput) (*ListStacksOutput, error)"
what is the "input" parameter to be used here
any examples would be of help
kumar-shrey
@kumar-shrey
hi, I am looking for API to consume events from event bridge. I am using Redshift Data API ExecuteStatement with WithEvent flag as true. and want to listen to completion event. Any example would be helpful
Lulu
@404cn
hi, I am trying to use cloudwatch event to monit Exposed AccessKey, and looking for API to get this info if this event is trigger.
Does this sdk have that func?
Thoufic
@LEDgEr67
Hi, I am trying to create a Lambda function that is triggered through dynamoDB Streams on data modify and updating new data to the Elastic Search in "Golang" can anyone help me with boiler plate code
vincent youmans
@vinceyoumans
I am looking for an example golang cli app ( using cobra for example) that makes a call to a GoLang Lambda. anything out there?
pradeepp28
@pradeepp28
Currently I am using aws s3manager BatchUploadIterator to upload all files we have in multipart form, how do we do this in aws-sdk-go-v2?
I searched the documentation, couldn't find the similar one in aws-sdk-go-v2
jimmason1001
@jimmason1001
how do I retrieve the data from the test full stack serverless stack?
Bipin
@BipinRPandey_twitter
Hi
How can i execute simple select query in Redshift using Go (Redshift Data API)
Also, Can one help me resolving error while installing package - "go get github.com/aws/aws-lambda-go"
Error - go get: module github.com/aws/aws-lambda-go: Get "https://proxy.golang.org/github.com/aws/aws-lambda-go/@v/list": dial tcp: i/o timeout
fezekilePlaatyi
@fezekilePlaatyi
Hello, How to make a timestamp field on AWS Console for date on custom fields?
nallasai
@nallasai
Hi, Are there any code example of the RequestRetryer interface? I'm trying to use retries to fix 'Rate limiting' and throttling errors while making IAM API calls.
1 reply
Cristian Spinetta
@cspinetta
Hi everyone!
With my team we are building a reverse proxy to intercept all outgoing requests to S3 in order to audit and control the access from the different apps.
We've successfully implemented almost all operations by streaming the content of the files. For instance, to upload with single operation we used the s3manager.Uploader to stream the body of the incoming request (which is an io.Reader) to S3 and to download (both single and multipart flavor) we used the primitive io.Copy to write the response from the ´s3.GetObjectOutput.Body´ (which is an io.ReadCloser).
The only operation we still couldn't implement via streaming was the upload-part (in the context of a multipart uploading). The problem is that s3.UploadPartInput needs a aws.ReadSeekCloser and to pass the body of the incoming request you need to buffer it in some place (for example, in memory). Is there a way to stream an incoming request of an UploadPart with no need to store the entire body in memory?
Cristian Spinetta
@cspinetta

Hi everyone!
With my team we are building a reverse proxy to intercept all outgoing requests to S3 in order to audit and control the access from the different apps.
We've successfully implemented almost all operations by streaming the content of the files. For instance, to upload with single operation we used the s3manager.Uploader to stream the body of the incoming request (which is an io.Reader) to S3 and to download (both single and multipart flavor) we used the primitive io.Copy to write the response from the ´s3.GetObjectOutput.Body´ (which is an io.ReadCloser).
The only operation we still couldn't implement via streaming was the upload-part (in the context of a multipart uploading). The problem is that s3.UploadPartInput needs a aws.ReadSeekCloser and to pass the body of the incoming request you need to buffer it in some place (for example, in memory). Is there a way to stream an incoming request of an UploadPart with no need to store the entire body in memory?

just in case, here I asked this question: https://stackoverflow.com/q/67624774/3392786

SathiyaraJ
@sathiit_twitter
hi , how we can set the custom type attribute value in dynamodb.attributeValue? in golang
"ID": {
S: aws.String(<custom type here>),
},
avexbesuke
@avexbesuke
https://docs.aws.amazon.com/sdk-for-go/api/service/cloudfront/sign/#URLSigner.Sign
Hi, func (URLSigner) Sign If I specify a custom domain as the argument url for this method, will it still return the signed URL?
For example, "https://xxx.co.us" + s3ObjectKey.
zhu jun
@SozzzZ_gitlab
InvalidClientTokenId: The security token included in the request is invalid.
how can i get the true tiken
Cristian Măgherușan-Stanciu
@cristim

did anyone try to parse the pricing API data in into a native Go object? I'm having a hard time with this

{"product":{"productFamily":"Storage","attributes":{"storageMedia":"SSD-backed","maxThroughputvolume":"1000 MiB/s","volumeType":"Provisioned IOPS","maxIopsvolume":"64000","servicecode":"AmazonEC2","usagetype":"EBS:VolumeUsage.io2","locationType":"AWS Region","volumeApiName":"io2","location":"US East (N. Virginia)","servicename":"Amazon Elastic Compute Cloud","maxVolumeSize":"16 TiB","operation":""},"sku":"6V576P37PS7K7KYU"},"serviceCode":"AmazonEC2","terms":{"OnDemand":{"6V576P37PS7K7KYU.JRTCKXETXF":{"priceDimensions":{"6V576P37PS7K7KYU.JRTCKXETXF.6YS6EN2CT7":{"unit":"GB-month","endRange":"Inf","description":"$0.125 per GB-month of Provisioned IOPS SSD (io2)  provisioned storage - US East (Northern Virginia)","appliesTo":[],"rateCode":"6V576P37PS7K7KYU.JRTCKXETXF.6YS6EN2CT7","beginRange":"0","pricePerUnit":{"USD":"0.1250000000"}}},"sku":"6V576P37PS7K7KYU","effectiveDate":"2021-07-01T00:00:00Z","offerTermCode":"JRTCKXETXF","termAttributes":{}}}},"version":"20210709001917","publicationDate":"2021-07-09T00:19:17Z"}

and json-to-go gives this output

type AutoGenerated struct {
    Product struct {
        ProductFamily string `json:"productFamily"`
        Attributes    struct {
            StorageMedia        string `json:"storageMedia"`
            MaxThroughputvolume string `json:"maxThroughputvolume"`
            VolumeType          string `json:"volumeType"`
            MaxIopsvolume       string `json:"maxIopsvolume"`
            Servicecode         string `json:"servicecode"`
            Usagetype           string `json:"usagetype"`
            LocationType        string `json:"locationType"`
            VolumeAPIName       string `json:"volumeApiName"`
            Location            string `json:"location"`
            Servicename         string `json:"servicename"`
            MaxVolumeSize       string `json:"maxVolumeSize"`
            Operation           string `json:"operation"`
        } `json:"attributes"`
        Sku string `json:"sku"`
    } `json:"product"`
    ServiceCode string `json:"serviceCode"`
    Terms       struct {
        OnDemand struct {
            SixV576P37PS7K7KYUJRTCKXETXF struct {
                PriceDimensions struct {
                    SixV576P37PS7K7KYUJRTCKXETXF6YS6EN2CT7 struct {
                        Unit         string        `json:"unit"`
                        EndRange     string        `json:"endRange"`
                        Description  string        `json:"description"`
                        AppliesTo    []interface{} `json:"appliesTo"`
                        RateCode     string        `json:"rateCode"`
                        BeginRange   string        `json:"beginRange"`
                        PricePerUnit struct {
                            Usd string `json:"USD"`
                        } `json:"pricePerUnit"`
                    } `json:"6V576P37PS7K7KYU.JRTCKXETXF.6YS6EN2CT7"`
                } `json:"priceDimensions"`
                Sku            string    `json:"sku"`
                EffectiveDate  time.Time `json:"effectiveDate"`
                OfferTermCode  string    `json:"offerTermCode"`
                TermAttributes struct {
                } `json:"termAttributes"`
            } `json:"6V576P37PS7K7KYU.JRTCKXETXF"`
        } `json:"OnDemand"`
    } `json:"terms"`
    Version         string    `json:"version"`
    PublicationDate time.Time `json:"publicationDate"`
}

any clues how to handle the OnDemand and PriceDimensions structs?

Cristian Măgherușan-Stanciu
@cristim
I ended up doing some regex replaces on those SKU values before unmarshaling, this is so fugly
Cristian Măgherușan-Stanciu
@cristim
I finally got some code able to parse the EBS pricing and expose it in a more user-friendly format, if anyone is interested in this please let me know, I will eventually open source it but I can share it earlier upon demand
Pragyan Aryal
@pragyanaryal
Hello Can anyone help me using Cognito Admin API using aws-sdk-go-v2
image.png
I get the error no EC2 IMDS role found
I can Create users using the API, client.SignUp
But, cannot get the user using API, client.AdminGetUser
Yuval Lifshitz
@yuvalif
Hi,
I'm looking for a way to set the signature version explicitly for a client. found documentation for various SDKs, but not for golang
https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingAWSSDK.html#specify-signature-version
JK
@jkgithubrepo

Hi,
I am trying to use AWS SDK for Go to implement S3 apis to connect with third party storage provider (Dell OneFS) who support S3 API. First in place, is AWS SDK is tightly coupled with AWS or it can be used to connect with any storage provider who support S3 API? If so, can someone help me to configuring the target host and other details?

Thanks
JK

Yuval Lifshitz
@yuvalif
you can connect to any storage that supports S3. e.g. i use it to connect to object storage gateway of Ceph (https://ceph.io/en/)
I use the NewSession() call from: github.com/aws/aws-sdk-go/aws/session
you pass it a NewConfig() with endpoint, credentials, region, and all other parameters pointing to your storage provider
JK
@jkgithubrepo
Thank you Yuval, for the response on this. Let me check and confirm on this.
JK
@jkgithubrepo
Yuval, it's working... great thanks for your help on this... it is really appreciated...
JK
@jkgithubrepo
Hi yuvalif, when I am uploading document bucket name is appended to the Put request. Getting error "RequestError: send request failed
caused by: Put "http://bucketname.hostname.com:9020/uploaddoc.pdf": dial tcp: lookup bucketname.hostname.com: no such host"
Did you face such problem? how to avoid appending bucketname in the url? or is there any other work around?
Yuval Lifshitz
@yuvalif
yes , had this problem :-)
use: WithS3ForcePathStyle(true) in the config, so that the bucket name would appear in the "path" and not the "host"
JK
@jkgithubrepo
@yuvalif you are the saviour :) it worked. I am not getting what they are coming to say when I am reading aws documentation for this method. I felt the documentation is not clear... Thanks a lot for the help on this...
JK
@jkgithubrepo
@yuvalif , I am setting some user defined metadata while uploading a file. How to retrieve these metadata using Go SDK?
Yuval Lifshitz
@yuvalif
@JK sorry, don't know about that
Cristian Măgherușan-Stanciu
@cristim
Is there any tooling to help with migration of a relatively large project from v1 to v2?
puvvadav
@puvvadav
Hi, does aws-sdk-go accepts . (dot) as part of keys ?
puvvadav
@puvvadav
How to pass session token while creating new session ?
Nilesh Akhade
@TheNilesh
Can someone help me with documentation on guidelines for retrying s3 upload on error?
  • What kind of errors is retriable?
  • Detecting "SlowDown" and stopping retries?
    uploader := s3manager.NewUploader(sess)
    _, err := uploader.Upload()
1 reply
ETHERUEMconsultant2018
@ETHERUEMconsultant2018
we are so sorry to hear about your situation you can contact eth@consultant.com for any issue that’s occur your
Stefan Sundin
@stefansundin
Hello all. Sad to see this channel seemingly be a bit dead. I was hoping if someone on the AWS SDK team could answer this stackoverflow that I posted 20 days ago: https://stackoverflow.com/questions/69692732/how-to-call-the-values-function-in-aws-sdk-go-v2
Since stackoverflow is suggested in the SDK readme, I was hoping that some people from AWS would be monitoring it, but it seems like this is not the case either. I am trying to avoid opening a github issue.
hemachand
@hemachandsai
2 new tools built using aws-sdk-go and made opensource :-
https://github.com/hemachandsai/cloudwatch-log-aggregator
https://github.com/hemachandsai/s3-bulk-delete
Please have a look and let me know your thoughts!! Any feedback/suggestions are highly appreciated
vpakhuchyi
@vpakhuchyi

Hi there!
I've just started using Lambda and Go thus sorry for newbie questions.

So the question:
I have a lambda that may return errors with different status codes: 400, 404, 500.
On top of it I have an API Gateway that right now always returns me 502 when lambda returns any error.
I've failed to map it through response templates.

Could someone please give me a hand with this? What is a proper way to manage errors handling?