Skip to content

Conversation

suzana-nesic
Copy link
Contributor

Follow up to #74 and #78

Part of APPSRE-6382

main.go Outdated
}
if pkg.LookUpEnvVar("ROLE_ARN") && pkg.LookUpEnvVar("SESSION_NAME") {
client := sts.New(sess)
err = pkg.AssumeRole(client, roleARN, sessionName, logger)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to refresh the token/session, first you need to introduce the DurationSeconds Parameters for AssumeRole. So we can know how often we should refresh the token. Then, we need to write a loop function that looks like CollectLoop which would run AssumeRole before DurationSeconds comes and recreate all sessions in vpcSessions, rdsSessions, ec2Sessions and r53 session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants