Questions tagged [aws-sdk-go-v2]
32 questions
1
vote
1 answer
aws-sdk-go-v2 set custom header on PutObjectInput
I am in a situation where i need to set a custom header on putting an object to an s3 compatible storage system.
_, err := uploader.Upload(ctx, &s3.PutObjectInput{
Bucket: aws.String(util.GlobalConfig.S3.Bucket),
Key: …

Rygo
- 159
- 1
- 8
1
vote
1 answer
How to find out what i'm doing wrong. Getting validation exception in timestream write Records with go sdk?
As the title says, I'm trying to write a bunch of records to timestream, but I keep getting "ValidationException" without any further information, so I have no idea what should be fixed. The exact error response is:
operation error Timestream…

David Perez
- 478
- 5
- 17
1
vote
2 answers
How do I get pagination working with exclusiveStartKey for dynamodb aws-sdk-go-v2?
I'm trying to create a pagination endpoint for a dynamodb table I have. But I've tried everything to get the exclusiveStartKey to be the correct type for it to work. However, everything I've tried doesn't seem to work.
example code:
func…

Zeedinstein
- 13
- 1
- 6
0
votes
1 answer
aws-sdk-go-v2 api error InvalidPart: One or more of the specified parts could not be found
So I tried to upload multiple part using AWS, but I got One or more of the specified parts could not be found. The part may not have been uploaded, or the specified entity tag may not match the part's entity tag. when doing CompleteMultipartUpload,…

Kokizzu
- 24,974
- 37
- 137
- 233
0
votes
0 answers
Timeout on websocket in aws-sdk-go v2 does not appear to have a configuration to change the timeout interval
In starting a session using the aws-sdk-go-v2 library I have tried various settings for changing the websocket timeout value (30 seconds is the current timeout I see). In the AWS documentation they suggested the following:
ctx, _ :=…

tradetree
- 354
- 3
- 20
0
votes
0 answers
How can you configure gzip for CloudWatch PutMetricData
The documentation for PutMetricData calls out that POST requests are limited to 1MB in size. It further states that large requests can be gzipped to fit into that limit.
However, as near as I can tell, there is no documentation on how to configure…

Corey Cole
- 977
- 9
- 18
0
votes
0 answers
Multi-tenant users use STS to obtain credentials
SDK Version : AWS SDK in Go v2
I have 2 questions about SDK operation that was found a lot of documents but have no idea
1. Handle multiple credentials or clients cache in SDK
I know how to new a credential or client like this
ctx :=…

Johnson
- 1
- 1
0
votes
1 answer
AWS Golang SDK v2 - How to get Total Memory of RDS DB Instance?
I'm collecting information and metrics about RDS Instances from CloudWatch and RDS services.
I tried to get metrics and information using the following methods:
DescribeDBInstances
GetMetricData
Unfortunately, there is no information about the…

DrupalAdmin
- 25
- 6
0
votes
1 answer
How to list resources of linked AWS accounts using AWS Go sdk
This is what I have tried. The code below fetches a list of linked accounts, but fetches the list of domains of only one AWS account. I want to list domains or any other resources of each particular linked account.
The problem seems to be around svc…

Arvind Singh
- 733
- 1
- 10
- 31
0
votes
0 answers
Where is V2 GO sdk for listing, creating, and updating openshift clusters in the GO sdk V2?
I have the GO sdk V2 and used ListClusters in eks. I ran it and it doesn't list any openshift clusters in the aws account in any region. Where is the GO sdk V2 functions to list, create, delete, and update OpenShift clusters? Thank you!

Gary Sutherland
- 79
- 7
0
votes
2 answers
DynamoDB Global Secondary Index "Batch" Retrieval
I've see older posts around this but hoping to bring this topic up again. I have a table in DynamoDB that has a UUID for the primary key and I created a secondary global index (SGI) for a more business-friendly key. For example:
| account_id |…

ChrisS
- 45
- 5
0
votes
0 answers
Starting aws pipeline with assume role context canceled with ask-sdk-go-v2
I have a service running on an ec2 instance with an IAM role that is allowed to assume a role that starts sagemaker pipelines, with asw-sdk go V2. However it returns
operation error SageMaker: StartPipelineExecution, context canceled
.
Code used…

Meg
- 21
- 1
0
votes
0 answers
405 error for PutObject after migrating to aws-sdk-go-v2
I'm using the S3 API with an OpenStack container. When upgrading to the v2 SDK, I replaced s3manager.NewUploaderWithClient with manager.NewUploader. Also added a custom resolver that returns the OpenStack endpoint. When I run it now I get an error…

Steffen
- 36
- 2
0
votes
1 answer
Keep getting build fail and unable to save import for main.go file for lambda function using SAM CLI
I'm trying to import "github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue" for my main.go file for my lambda function but every time I save the import disappears.
I have some simple Golang code trying to update a visitor count by updating a…

echough1
- 1
- 1
0
votes
2 answers
Why do I get ProvisionedThroughputExceededException in DynamoDB if AWS SDK for go implements exponential back-off?
I'm sorry that I can't post my code snippets. I have a Go script that scans through the DynamoDB database and makes modifications to the entries. Everything is done sequentially (no go routines are involved). However, when I was running this on a…

Steve Han
- 25
- 7