Skip to content

Commit

Permalink
Adding support MFA (assumerole)
Browse files Browse the repository at this point in the history
  • Loading branch information
perriea authored and TylerBrock committed Jun 29, 2018
1 parent 093e051 commit cc849f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blade/blade.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/TylerBrock/colorjson"
"github.com/TylerBrock/saw/config"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials/stscreds"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
"github.com/fatih/color"
Expand All @@ -34,8 +35,9 @@ func NewBlade(
}

awsSessionOpts := session.Options{
Config: awsCfg,
SharedConfigState: session.SharedConfigEnable,
Config: awsCfg,
AssumeRoleTokenProvider: stscreds.StdinTokenProvider,
SharedConfigState: session.SharedConfigEnable,
}

if awsConfig.Profile != "" {
Expand Down

0 comments on commit cc849f6

Please sign in to comment.