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.
attachment.device
as your name and /dev/xvda
for your value
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
}
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?
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.
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
https://docs.aws.amazon.com/sdk-for-go/api/service/codegurureviewer/
https://docs.aws.amazon.com/sdk-for-go/api/service/codeguruprofiler/