aws-mfa 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/bin/aws-mfa +3 -0
  2. metadata +1 -1
@@ -72,6 +72,9 @@ class AwsMfa
72
72
  puts 'That is an invalid MFA code'
73
73
  exit 1
74
74
  end
75
+ ENV.delete('AWS_SECRET_ACCESS_KEY')
76
+ ENV.delete('AWS_ACCESS_KEY_ID')
77
+ ENV.delete('AWS_SESSION_TOKEN')
75
78
  credentials_raw = `aws sts get-session-token --serial-number #{arn} --token-code #{code}`
76
79
  credentials = JSON.parse(credentials_raw)
77
80
  File.open(credentials_file, 'w') { |f| f.print credentials_raw }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-mfa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: