aws-sdk-go Questions

5

Solved

How can I hook up my local minIO storage with aws-sdk-go-v2? I can find clear documentation of how to do that in the previous version of go SDK but not with V2. I read through the version 2 source ...
Occupancy asked 17/5, 2021 at 19:6

6

Solved

I used environment variables before and it worked fine. Now I am migrating my config variables into a single file and I have AWS_SECRET_ACCESS_KEY and AWS_ACCESS_KEY_ID variables containing respec...
Belvabelvedere asked 9/1, 2017 at 9:18

5

I am building an AWS Lambda function in Golang that copy the content from n to m S3 buckets. There is a requirement to support for S3 trigger as well as fetching the data from an SQS where all sour...
Burnell asked 27/3, 2018 at 15:9

2

I'm attempting to write a really simple Go function to insert an entry into a DynamoDB table. I'm following the tutorial provided on the AWS Documentation site, but for some reason, the function ...
Johnnyjohnnycake asked 2/12, 2019 at 14:16

4

Solved

I'm trying to set-up an AWS-lambda using aws-sdk-go that is triggered whenever a new user is added to a certain dynamodb table. Everything is working just fine but I can't find a way to unmarshal ...
Hunchback asked 6/3, 2018 at 11:16

1

Solved

I am trying to convert simple DynamoDB Object string: { "Item": { "Id": { "S": "db31" }, "CreateTime": { "N": "164788223761891...
Prue asked 1/12, 2022 at 1:21

3

Solved

I am using aws-sdk-go library for DynamoDb connectivity in Golang. My DynamoDb table have a Partition key DeviceId (String) and a Sort Key Time (Number). How can I write GetItemInput to get all d...
Alyciaalyda asked 10/8, 2016 at 10:21

2

I have an S3 bucket with versioning enabled. The bucket has few files which have versions. I have written a sample golang program which can do the following: GetBucketVersioning - It is able to g...
Saturation asked 1/3, 2020 at 16:46

3

I am trying to use AWS SDK GO v2: https://github.com/aws/aws-sdk-go-v2 And seem to have a hard time unmarshalling the dynamodb.GetItemOutput's Item attribute which is of type map[string]types.Attri...
Exuberate asked 6/1, 2021 at 5:28

1

AWS' Golang SDK says that I should use stscreds.AssumeRoleProvider to assume a cross-account role (in this case, for querying another account's DynamoDb table from a web server). This code works: ...
Uriisa asked 30/10, 2017 at 19:22

2

Solved

My question is the same as this other question: How to run AWS SDK with credentials from variables? but I am using SDK version 2 which no longer uses Session (if I understand correctly). So, I am c...
Taught asked 11/8, 2021 at 6:27

1

Solved

Here is what I am trying to do. I have 2 AWS Accounts A and B. Using AWS SDK for Go v2 I want to use a CLI profile with credentials for Acct A and assume a role in Account B that requires MFA. I ha...
Retread asked 19/5, 2021 at 14:59

2

I am learning Golang to connect dynamodb using AWS-SDK-GO-V2 but I do not understand how to get one item by key. All example that i saw it is using the v1 but I NEED WITH V2.
Fructify asked 19/4, 2021 at 1:30

1

Solved

I'm putting and reading files to S3 using the AWS golang v2 SDK. Locally I am using local stack and thus need to set the param S3ForcePathStyle. But, I can't find where to set this parameter in the...
Jacklynjackman asked 10/2, 2021 at 13:16

2

Solved

I have created an AWS EKS cluster. In order to obtain its kubeconfig, I usually run aws eks update-kubeconfig --name cluster-name --region us-west-2 using a shell. However, I now wish to obtain th...
Lobule asked 5/3, 2020 at 14:18

4

Solved

I am trying to upload an object to AWS S3 using golang sdk without needing to create a file in my system (trying to upload only the string). But I am having difficulties to accomplish that. Can any...
Abbacy asked 3/12, 2017 at 18:34

1

I want to send a message to a MQTT topic via AWS IoT in golang using AWS-SDK via HTTP, when tried with below code it was unsuccessful. The response was : ResourceNotFoundException: Not Found statu...
Romaromagna asked 22/12, 2015 at 6:33

1

Solved

I'm using some aws-sdk-go functionalities in my app, and it creates DNS style hosts to request, like somebucket.mys3.com. But I have some DNS issues and want to receive the requests in path-style, ...
Chug asked 4/8, 2019 at 13:22

1

Solved

I'm building an aws lambda using aws-sdk-go and aws-lambda-go and I'm stuck with a little problem. I want to test my lambda handler. To do so, I need to mock a valid context.Context containing val...
Antisana asked 23/5, 2018 at 14:18

1

Solved

I'm trying to run a ECS task using the new aws-sdk-go (v2). And I'm having some trouble to initialize the &ecs.RunTaskInput{} struct. According to the file, this is the struct definition: typ...
Vitamin asked 7/3, 2018 at 20:2

2

Solved

I have a Go program that uses aws-sdk-go to talk to dynamodb. Dependencies are vendored. Go version 1.7.1. aws-sdk-go version 1.6.24. The program works as expected in all the following environments...
Hicks asked 2/3, 2017 at 22:58

1

Solved

I am trying to persist a given stream of data to an S3 compatible storage. The size is not known before the stream ends and can vary from 5MB to ~500GB. I tried different possibilities but did not...
Kilmarnock asked 24/4, 2017 at 19:6
1

© 2022 - 2024 — McMap. All rights reserved.