Skip to content

Commit

Permalink
prompt for MFA token
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradKurth committed Jan 3, 2018
1 parent a660415 commit 351f013
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/awsutil/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package awsutil

import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials/stscreds"
"github.com/aws/aws-sdk-go/aws/session"
)

Expand All @@ -21,6 +22,7 @@ func Session() (*session.Session, error) {
S3ForcePathStyle: aws.Bool(true),
Endpoint: aws.String(awsEndpoint),
},
SharedConfigState: session.SharedConfigEnable,
SharedConfigState: session.SharedConfigEnable,
AssumeRoleTokenProvider: stscreds.StdinTokenProvider,
})
}

0 comments on commit 351f013

Please sign in to comment.