Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 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
Severyn Lisovskyi
    keysToSkip := map[string]struct{}{
        "version": {},
        "info":    {},
    fn := func(dli *s3manager.DeleteListIterator) {
        // TODO add check
    s3manager.NewDeleteListIterator(s3.New(sess), input, fn)
2 replies
Hey, I got a really specific question and I hope someone can help me out. I am using s3 (sdk for go) and s3 does not have a hierarchy with folders and subfolder. So I named my files foo/bar/1/etc. Using prefix gives me ALL the files with that prefix, but I only want to go one step down in hierarchy. I have been reading the API and looking around on forums, but I cannot find a solution for this problem in golang. I did find: boto/boto3#134. This solution should work for go as well, as you can set prefixes and delimiters. But I have no idea how this CommonPrefix works in golang.
1 reply
are there any golang samples example available for aws privatelink to connect with rds postgres ?
Nayeem Junaid
I cant find Golang - ElastiCache example code at all. Please help!

Hi, is there a way to get a list of profile names in the shared name profiles file ~/.aws/credentials

For aws-cli, I run aws configure list-profiles, but what would be the golang sdk equivalent?

I am using SQS with go - It looks like there's issue with file descriptors/connections to aws not being closed - I may be missing something but I don't see where I can explicitly close a connection
Jay Kim
hello, anyone
anyone know how to visualize with api call in aws?
mahesa widhana
hello, anyone
Jay Kim
mahesa widhana
i have case in golang to get env vars from params store with appconfig as validators
my question is, which go library to the get function?
Hi @jay_kim07_twitter
Jay Kim
your link doesn’t work
mahesa widhana
yes, from vscode i cannot find GetEnvironmentRequest function
Jay Kim
I cannot see the vscode at all from the link.
it goes to error page.
mahesa widhana
hmm, ahh i see
so, where can i import golang library to find GetEnvironmentRequest function?
Jay Kim
not sure. I will check. and will let you know.
mahesa widhana
okey jay, thanks before
Jay Kim
Sorry about not being able to give answer right away.
I am pretty new in api stuff in aws.
mahesa widhana
okey, no problem jay. we are same hehe
i think i know
Bobby R. Ward

I'm trying to set the session duration for IRSA credentials to something other than the default of 1 hour.

The WebIdentityRoleProvider allows setting a Duration but this doesn't seem to be exposed in any way through session.
I can create the web identity and provider myself, but all of the loading of env vars is not exposed either.

I really just want a session longer than an hour but this seems to be terribly complicated for some reason.

i am trying to connect nosql(dynamodb) throgh Nosql App . i Can't able to do that.showing error like missing credentails in configuration ,set AWS_SDK_LOAD_CONFIG=1. please help if anybody knows.
I'm trying to get opsworks stack details here. But somehow it says there is no such stack with that ID
couldn't able to find any error also wondering where I got missed
any help would be really appriciate
Hi, guys
How can I list all the targetgroups with api?
Oleksandr Tyshkovets
is there a way to use query? I'm trying to implement the following:
aws ec2 describe-volumes --query 'Volumes[].Attachments[?(Device!=`/dev/xvda`)].VolumeId | []'
@aint From the SDK guide, it appears that you would have to use the Filters attribute from the DescribeVolumes call, so something like this:
svc := ec2.New(sess)
req, err := svc.DescribeVolumes(&ec2.DescribeVolumesInput{
    Filters: {...}
and in the Filter struct, you'd would have attachment.device as your name and /dev/xvda for your value
Hi how can i mock the interface/repository
how can I paginate getApiKeys query, what is the condition to check to stop the pagination query.
type GetApiKeysOutput struct {

    // The current page of elements from this collection.
    Items []*ApiKey `locationName:"item" type:"list"`

    Position *string `locationName:"position" type:"string"`

    // A list of warning messages logged during the import of API keys when the
    // failOnWarnings option is set to true.
    Warnings []*string `locationName:"warnings" type:"list"`
    // contains filtered or unexported fields
Ian Cullinane
My only previous experience with go-sdk is the CloudFormation api. The inputs for these had cr := cf.CreateStackInput{ RoleARN: aws.String(cm.cfg[cloudRoleKey]), ... }. Now I am trying to read messages off of an SQS queue and see that this is not available. Would I pass a role ARN into session, or do I need to use the credentials package? Is that possible?
Ian Cullinane
Or does it only work from a .aws/credentials file?
Sonali Rajput
i want to make some tech friends
who can teach me XD
JaeHoon Kim
I'm trying to call ec2.DescribeInstances() function, but only empty brace returned. How can I fix this?
sess := session.Must(session.NewSessionWithOptions(session.Options{
    SharedConfigState: session.SharedConfigEnable,

// Create new EC2 client
ec2Svc := ec2.New(sess)

input := &ec2.DescribeInstancesInput{
    InstanceIds: []*string{aws.String(instanceID)},

// Call to get detailed information on each instance
result, err := ec2Svc.DescribeInstances(input)
if err != nil {
    fmt.Println("Error", err)
} else {

It returns like below:



I found aws/aws-sdk-go#1449 but it doesn't have a solution.
Any help would be much appreciated.


Are CodeGuru Profiler and Viewer available in Golang?

Nowhere on the homepage showcasing this tool (https://aws.amazon.com/codeguru/) is mentioned support for Golang. But I saw these two SDKs links and I am now confused on whether this actually works with Golang or not