Embedding aws-vault into a golang-written cli
patstrom opened this issue · comments
Patrik Karlström commented
Hello!
I want to embedd aws-vault into a CLI i've written in Golang. The idea is that I will distribute this CLI to people that don't usually interact with AWS (so they have none of the associated tools) but for my program they need the SSO login. Is there any way I can import aws-vault, do the whole AWS SSO login flow (with a hard-coded profile) and pass it directly to aws-sdk-go without even needing to configure the aws cli or read/write any other files etc?
Patrik Karlström commented
I figured this out by looking at the source code to determine the correct flow using the AWS SDK!