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
Severyn Lisovskyi
@sev3ryn
hi, I'm trying to use s3manager.BatchDeleteIterator with custom iterator - that will skip few of the keys but I can't figure out how to access s3 filenames from DeleteListIterator
    keysToSkip := map[string]struct{}{
        "version": {},
        "info":    {},
    }
    fn := func(dli *s3manager.DeleteListIterator) {
        // TODO add check
    }
    s3manager.NewDeleteListIterator(s3.New(sess), input, fn)
2 replies
AnnikaLarissa
@AnnikaLarissa
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
Gowrisankar
@gowrisankar22
hi
are there any golang samples example available for aws privatelink to connect with rds postgres ?
Nayeem Junaid
@NayeemJunaid
I cant find Golang - ElastiCache example code at all. Please help!
CSP
@CSP197

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?

mroth2014
@mroth2014
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
@jay_kim07_twitter
hello, anyone
anyone know how to visualize with api call in aws?
mahesa widhana
@mahesadhanaa
hello, anyone
Jay Kim
@jay_kim07_twitter
hi
@mahesadhanaa
mahesa widhana
@mahesadhanaa
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
@jay_kim07_twitter
your link doesn’t work
mahesa widhana
@mahesadhanaa
yes, from vscode i cannot find GetEnvironmentRequest function
Jay Kim
@jay_kim07_twitter
I cannot see the vscode at all from the link.
it goes to error page.
mahesa widhana
@mahesadhanaa
hmm, ahh i see
so, where can i import golang library to find GetEnvironmentRequest function?
Jay Kim
@jay_kim07_twitter
not sure. I will check. and will let you know.
mahesa widhana
@mahesadhanaa
okey jay, thanks before
Jay Kim
@jay_kim07_twitter
Sorry about not being able to give answer right away.
I am pretty new in api stuff in aws.
mahesa widhana
@mahesadhanaa
okey, no problem jay. we are same hehe
i think i know
Bobby R. Ward
@bobbyrward

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.

jasmin
@jasmin67974274_twitter
hi
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.
ubuddgi
@ubuddgi_gitlab
image.png
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
Caden
@CadenOf
Hi, guys
How can I list all the targetgroups with api?
Oleksandr Tyshkovets
@aint
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 | []'
doublefelix7
@doublefelix7
@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
pramod
@param1303_gitlab
Hi how can i mock the interface/repository
smredua7
@smredua7
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
@iancullinane
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
@iancullinane
Or does it only work from a .aws/credentials file?
Sonali
@Sonali-Rajput
hello
i want to make some tech friends
who can teach me XD
JaeHoon Kim
@LumpKim
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 {
    fmt.Println(result)
}

It returns like below:

{

}

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