-
Notifications
You must be signed in to change notification settings - Fork 54
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
add support for buildkite token from ssm #76
Conversation
Thanks @arromer, this looks good. Perhaps could we go for |
backend/ssm.go
Outdated
"sync" | ||
) | ||
|
||
var ssmClient *ssm.SSM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think it's worth caching this client between lambda invocations?
backend/ssm.go
Outdated
|
||
func GetSsmClient() *ssm.SSM { | ||
once.Do(func() { | ||
ssmClient = ssm.New(session.Must(session.NewSession())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps move this into RetrieveFromParameterStore
and use an if ssmClient != nil
check vs sync.once.
Sorry for being slow to get this merged in, really appreciate your patience and the contribution! 🙌🏻 |
ssm support extracted from #59