aws-pws 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a03403acc20edb9fa60ed98d22012063ee4388c4
4
- data.tar.gz: 0ff585a5b11ad8e63c265f3a297623fdc3b80ab4
3
+ metadata.gz: 332c06e3a8bacfe64aeb29a02de7a4ea20d5226a
4
+ data.tar.gz: 543e323d59bf6a9a6aa37360e2315b07a030a69c
5
5
  SHA512:
6
- metadata.gz: 2918eb82e8836ee47481be0aeb4f5617b1236c6d853362492c9983bd52c94e55291545f94ec74dc95b588176de1458479ea2bc69766f90578d38b637cef344d1
7
- data.tar.gz: fa074e4dd4fa9684147f21756e0cc34ec27b8ed360976f460ec11ee5ca121a0fffccabb16deea3fb8a25bf0fedaf75fff5b41d7a33b9eaf952a9015a173c294e
6
+ metadata.gz: 21569b861f49e13c0408fc948184d616ef39737706730d88473b085dc6ef556cdacdf77a61347d5fde74c08da662a3032ddac6c2cd79173dc92448ed2a6eb634
7
+ data.tar.gz: 589ddc0d8877718711a7385104fc24eae0fa596bc0f3c72e7973c38f0ca18f2e7df81a6d85703ca904637339644208de7336849787fd9f767ef5c9fdf1596f0f
data/README.md CHANGED
@@ -27,11 +27,7 @@ To create your keychain:
27
27
 
28
28
  $ aws-pws init
29
29
 
30
- To add an item to your aws keychain:
31
-
32
- $ aws-pws add
33
-
34
- This will prompt for a friendly name, the Access Key ID, and the Secret Access Key.
30
+ This will prompt for the Access Key ID and the Secret Access Key.
35
31
 
36
32
  To list items in the keychain:
37
33
 
@@ -45,15 +41,31 @@ To emit the environment variable `export` commands that you can source into your
45
41
 
46
42
  $ aws-pws env <name>
47
43
 
48
- To always load the given environment in your shell, add the following to
49
- your .bashrc or .zshrc
50
-
51
- source `aws-pws env <name>`
52
-
53
44
  To automatically grab AWS credentials from your keychain when using the aws-sdk gem, add the following code:
54
45
 
55
46
  AWS.config(credential_provider: AWS::PWS::CredentialProvider.new(name))
56
47
 
48
+
49
+ ### Using aws-pws for a secure `aws` command line tool
50
+
51
+ Create the following file, `aws-safe`, somewhere in your path:
52
+
53
+ #!/bin/bash
54
+
55
+ set -e
56
+
57
+ export $(aws-pws cat)
58
+ aws $@
59
+
60
+ Make it executable via `chmod +x aws-safe`.
61
+
62
+
63
+ ### Using with multiple AWS accounts / credential pairs
64
+
65
+ Unlike the aws-keychain-util, aws-pws doesn't support multiple account namespaces. However, you can use the `PWS` environment variable to achieve this:
66
+
67
+ PWS=/path/to/alternate/pws aws-pws ...
68
+
57
69
  ## Contributing
58
70
 
59
71
  1. Fork the project.
@@ -1,5 +1,6 @@
1
1
  require 'aws/pws'
2
2
  require 'aws-sdk'
3
+ require 'aws/core'
3
4
 
4
5
  module AWS
5
6
  module PWS
@@ -1,5 +1,5 @@
1
1
  module AWS
2
2
  module PWS
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-pws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-12 00:00:00.000000000 Z
11
+ date: 2015-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pws
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.2.2
127
+ rubygems_version: 2.4.5
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: A password-protected CredentialProvider for AWS