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
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?
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

Hi All, can anybody help me creating session with assume role?
I have only role arn attached to my ec2 instace, I am able to describe-instances with that role by using awscli, but not able to build session with golang sdk
Hi All, following is my code
package main

import (
//    "flag"

//    "github.com/aws/aws-sdk-go/aws/credentials"
    log "github.com/sirupsen/logrus"

func main() {
    var arn string
    var region string
    region = "us-east-1"

    sess := session.Must(session.NewSession())
    creds := stscreds.NewCredentials(sess, arn)

    fmt.Println("This should print the ec2 instances available in your account.  If you passed in an ARN, it will print the S3 buckets in the Assumed Role account.")
    ec3svc := ec2.New(session.New(), &aws.Config{Credentials: creds, Region: aws.String(region)})
    var input *ec2.DescribeInstancesInput
    resp, err := ec3svc.DescribeInstances(input)
    if err != nil {
        fmt.Println("there was an error listing instances in", err.Error())
    }else {
        fmt.Println("Success", resp)

I am getting the below error

there was an error listing instances in InvalidClientTokenId: The security token included in the request is invalid.
    status code: 403, request id: 65aa93eb-dd15-46be-8a92-a1e32b6aa1b5
FATA[0000] InvalidClientTokenId: The security token included in the request is invalid.
    status code: 403, request id: 65aa93eb-dd15-46be-8a92-a1e32b6aa1b5

Can somebody help to fix this issue...?

Olli Raula
Hi, if I need to stream s3 download, is there some lib or do I need to write it from scratch
Oshadha Gunawardena
Is there a way we can invalidate a token using the aws cognito golang sdk?
Pravin Ranjan
AuthorizationHeaderMalformed: The authorization header is malformed; the region 'ap-south-1' is wrong; expecting 'us-east-1'
status code: 400, request id: A6927F05123508CF, host id: vh25Ir7uVrT7BWyxPLfgPJkqLVnK2qC3sCQoTkM6rUPNgcdpfB2YVjufoRugTLQTspXdETjaRzE=
Any idea about this error?
Vivek Singh
I was not able to find an API that can wait for Aurora DB cluster to successfully deleted. What should be a proper way to do this.
What I am doing as of now is, use DescribeDBClusters to get the instances that are being run by the Aurora cluster, delete them (DeleteDBInstance) and then run DeleteDBCluster to actually delete the cluster. But the problem is I don't see an API that can wait for that cluster to be deleted.
@PravinRanjan10 did you try changing the region to us-east-1
1 reply
Looking for a basic lambda golang producer.
I've seen the implementation using https://github.com/a8m/kinesis-producer. But I'm looking for a basic implementation for PutRecord.
I keep getting a timeout between lambda->kinesis stream.
I've went through this - https://aws.amazon.com/premiumsupport/knowledge-center/kinesis-data-streams-lambda-invocation/ and the current lambda function execution time is 90s and memory is at 512mb (tried with 1024mb)...
Full Kinesis Permissions seem to be set on lambda execution role...
DescribeStream also fails. So it keeps pointing me back to Permissions but nothing in CloudWatch..
*the kinesis client is set, able to log the details out.
Currently running into issue with error message SignatureDoesNotMatch: Credential should be scoped to a valid region, not 'us-gov-east-1' when using Terragrunt trying to create IAM policy in Gov. This line may (?) suggest we can only use us-gov-west-1 for IAM resources. Looking for guidance on how I can either create or reference IAM resources if I am authenticated to us-gov-east-1 region.
Adnan Rashid
hi - does anyone here use selenium? any ideas how to get extensions to load on Chrome when running an automated test via the CLI?
hello, I have setup s3 endpoint for my VPC and I can download the file object directly via Ec2's curl without creds, then I wanna call the s3 GetObject API in the EC2 using this SDK without setting creds, but it got error: operation error S3: GetObject, failed to sign request: failed to retrieve credentials: no EC2 IMDS role found, operation error ec2imds: GetMetadata, http response error StatusCode: 404, request to EC2 IMDS failed. Can anyone help me? thanks
Anyone please assiist with "func (c CloudFormation) ListStacks(input ListStacksInput) (*ListStacksOutput, error)"
what is the "input" parameter to be used here
any examples would be of help
hi, I am looking for API to consume events from event bridge. I am using Redshift Data API ExecuteStatement with WithEvent flag as true. and want to listen to completion event. Any example would be helpful
hi, I am trying to use cloudwatch event to monit Exposed AccessKey, and looking for API to get this info if this event is trigger.
Does this sdk have that func?
Hi, I am trying to create a Lambda function that is triggered through dynamoDB Streams on data modify and updating new data to the Elastic Search in "Golang" can anyone help me with boiler plate code
vincent youmans
I am looking for an example golang cli app ( using cobra for example) that makes a call to a GoLang Lambda. anything out there?
Currently I am using aws s3manager BatchUploadIterator to upload all files we have in multipart form, how do we do this in aws-sdk-go-v2?
I searched the documentation, couldn't find the similar one in aws-sdk-go-v2
how do I retrieve the data from the test full stack serverless stack?
How can i execute simple select query in Redshift using Go (Redshift Data API)
Also, Can one help me resolving error while installing package - "go get github.com/aws/aws-lambda-go"
Error - go get: module github.com/aws/aws-lambda-go: Get "https://proxy.golang.org/github.com/aws/aws-lambda-go/@v/list": dial tcp: i/o timeout
Hello, How to make a timestamp field on AWS Console for date on custom fields?