Questions tagged [aws-sdk-go]
Use this tag for questions related to the AWS SDK for Go library for Amazon Web Services SDK for the Go programing language.
aws-sdk-go
281
questions
2
votes
1
answer
60
views
golang: Download S3 object with a versionId
I have an object stored in S3 which has multiple versions, I want to download a specific version of the object using Go, I'm using AWS SDK: https://github.com/aws/aws-sdk-go
I'm able to download an ...
0
votes
0
answers
13
views
Will dynamodb client automatically retry for retryable error?
If the dynamodb client is initialized in this way, without specifying anything related to retry, will the client automatically retry 3 times for retryable errors? Thanks.
newSession := session.Must(...
0
votes
0
answers
24
views
The behavior of aws-sdk-go sub-loglevel?
I set the AWS SDK log level to aws.LogDebugWithRequestRetries:
session.NewSessionWithOptions(
session.Options{
Config: *aws.NewConfig().WithLogger(aws.LoggerFunc(logrus.WithField("...
-1
votes
1
answer
81
views
Unable to use type Instance from aws-sdk-v2 golang module
I am importing the following go module:
import "github.com/aws/aws-sdk-go-v2/service/ec2"
I want to write a simple function that iterates over the instance tags so I am doing the following
...
1
vote
0
answers
154
views
AWS Go SDK V2: assuming different roles concurrently
I'm learning to write microservices in Go and I have created an API endpoint using Gin. My use case is that this endpoint receives an AWS role and then assumes it to access some AWS resource.
I found ...
0
votes
0
answers
147
views
File not uploading to S3 after SDK upgrade
I have recently upgraded (19 Feb release of SDK) the AWS SDK v2. The older version was very much old (year 2021). I found some breaking changes with this. I am not able to upload file on AWS S3 bucket....
0
votes
2
answers
50
views
How to Track Last Access Time for DynamoDB Table in Go using AWS SDK
Problem Statement:
I am developing a Go application where I need to implement a mechanism to track the last access time for a DynamoDB table. I am using the AWS SDK for Go (github.com/aws/aws-sdk-go-...
1
vote
0
answers
126
views
Unable to Decrypt AWS KMS encrypted code using Golang, Error: InvalidCiphertextException
I'm trying to decrypt the AWS KMS encrypted code but getting error of InvalidCiphertextException:
operation error KMS: Decrypt, https response error StatusCode: 400, RequestID: 9e69224b-7c29-4e89-9d75-...
1
vote
1
answer
55
views
Cognito Go SDK Issue on K8s deployment
I'm having an issue where a AWS Cognito issue is working locally, but once deployed into K8s, it will not work. I'm hoping to get some help as to why.
The following simplified Go function works on my ...
0
votes
0
answers
93
views
EC2 RunInstance Issue with Assumed Role
I'm using the AWS SDK v2 in Golang to launch EC2 instances. When I use my personal AWS credentials, the RunInstance call works as expected, but with the assumed role generated from the EC2 instance's ...
2
votes
1
answer
453
views
How to query AWS DynamoDb using KeyConditionExpression with the v2 Go SDK?
I have an existing table in dynamodb created with the following command
aws dynamodb create-table \
--region us-east-1 \
--table-name notifications \
--attribute-definitions AttributeName=...
2
votes
1
answer
428
views
How does the AWS CLI open a browser and wait for a response before proceeding?
I'm trying to build a golang cli tool for my company and as part of that build login and some other features into the tool. For the life of me I can't figure out how AWS is able to open a browser ...
2
votes
2
answers
499
views
Golang SDK for Dynamodb : ReturnValuesOnConditionCheckFailure does not return the details about conditions when conditionchcekfailure occurs
I am using golang sdk https://pkg.go.dev/github.com/aws/[email protected]/ to debug conditional check errors and find information about why the failure occured in sIngle write operations, but I can ...
2
votes
1
answer
753
views
How to use aws go sdk for authentication and authorization using cognito
Currently I am working with aws-sdk-go to implementing authentication and authorization using aws cognito.
In aws-sdk-go there are two functions available one is
cognitoidentityprovider another one ...
1
vote
1
answer
271
views
Accessing AWS using go SDK v2 with local SSO token
I have a simple AWS Go SDK v2 program
package main
import (
"context"
"encoding/json"
"os"
"github.com/aws/aws-sdk-go-v2/config&...