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 +4 -4
- data/README.md +22 -10
- data/lib/aws/pws/credential_provider.rb +1 -0
- data/lib/aws/pws/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 332c06e3a8bacfe64aeb29a02de7a4ea20d5226a
|
4
|
+
data.tar.gz: 543e323d59bf6a9a6aa37360e2315b07a030a69c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
data/lib/aws/pws/version.rb
CHANGED
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.
|
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:
|
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.
|
127
|
+
rubygems_version: 2.4.5
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: A password-protected CredentialProvider for AWS
|