Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying role at runtime #80

Closed
rittneje opened this issue Oct 20, 2020 · 0 comments · Fixed by #81
Closed

Allow specifying role at runtime #80

rittneje opened this issue Oct 20, 2020 · 0 comments · Fixed by #81

Comments

@rittneje
Copy link
Contributor

We would like to be able to specify the role ARN and role session name at runtime in the call to withCredentials. That way we can easily leverage multiple roles that are bound the same service user account without having to define those credentials multiple times in Jenkins. For example:

withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: awsCredentialsId, roleArn: 'arn:aws:iam::XXXXX:role/my-role', roleSessionName: 'my-session-name']]) {
    ...
}
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 a pull request may close this issue.

1 participant