sport_ngin_aws_auditor 3.1.0 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +1 -35
- data/README.md +8 -8
- data/lib/sport_ngin_aws_auditor/version.rb +1 -1
- data/sport_ngin_aws_auditor.gemspec +3 -2
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebc790d7e87791bcc90e8f2e85677e3283fa6fc7
|
4
|
+
data.tar.gz: 003b57e0b051d17419d7570d29d71b6596cb0803
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43f37a2f593dd957f519d1dc8f7e070b70f1497e630944565958f39bba1bf2cd83cb779ace1158b0cc69ae36594bbc5ee61de0d70aef11edbd9da3d0d3072c34
|
7
|
+
data.tar.gz: bae0efdbdb45afc0e00bb7df98b11ed62392b0410231caba5ef820c6d8fa9fa381a0993f9567f097890c129db8f3a994048c703b20b43eede5371cf45580e0ce
|
data/CHANGELOG.markdown
CHANGED
@@ -1,35 +1 @@
|
|
1
|
-
#### v3.1.
|
2
|
-
* Authentication with AWS roles instead of credentials file
|
3
|
-
|
4
|
-
> Emma Sax: Brian Bergstrom: https://github.com/sportngin/sport_ngin_aws_auditor/pull/7
|
5
|
-
|
6
|
-
#### v3.0.2
|
7
|
-
#### v3.0.1
|
8
|
-
#### v3.0.0
|
9
|
-
* Rename gem directories and modules
|
10
|
-
|
11
|
-
> Emma Sax: Brian Bergstrom: https://github.com/sportngin/sport_ngin_aws_auditor/pull/6
|
12
|
-
|
13
|
-
#### v2.1.0
|
14
|
-
* Adding option to print audit results to Slack channel
|
15
|
-
|
16
|
-
> Emma Sax, Matt Krieger: Brian Bergstrom: https://github.com/sportngin/aws_auditor/pull/4
|
17
|
-
|
18
|
-
* Adding option to print audit results to Slack channel
|
19
|
-
|
20
|
-
> Emma Sax, Matt Krieger: Brian Bergstrom: https://github.com/sportngin/aws_auditor/pull/4
|
21
|
-
|
22
|
-
#### v2.0.0
|
23
|
-
* Adding enhancements for taking no-reserved-instance tag into consideration during audit
|
24
|
-
|
25
|
-
> Emma Sax: Brian Bergstrom: https://github.com/sportngin/aws_auditor/pull/2
|
26
|
-
|
27
|
-
#### v1.0.0
|
28
|
-
* Upgrading aws-sdk version from v1 to v2
|
29
|
-
|
30
|
-
> Emma Sax: Brian Bergstrom: https://github.com/sportngin/aws_auditor/pull/3
|
31
|
-
|
32
|
-
* First tests, Travis CI, MFA support, and fog file compatibility
|
33
|
-
|
34
|
-
> Brian Bergstrom: Emma Sax: https://github.com/sportngin/aws_auditor/pull/1
|
35
|
-
|
1
|
+
#### v3.1.2
|
data/README.md
CHANGED
@@ -39,7 +39,7 @@ aws_secret_access_key = [SECRET ACCESS KEY]
|
|
39
39
|
|
40
40
|
Then this gem will use [AWS Shared Credentials](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html) with your credentials file. However, if you'd like to run these through either a default profile in your credentials file or through [User Roles](http://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html), then use the flag `aws_roles`:
|
41
41
|
|
42
|
-
$
|
42
|
+
$ sport-ngin-aws-auditor --aws_roles [command] account1
|
43
43
|
|
44
44
|
### Google Setup (optional)
|
45
45
|
You can export audit information to a Google Spreadsheet, but you must first follow “Create a client ID and client secret” on [this page](https://developers.google.com/drive/web/auth/web-server) to get a client ID and client secret for OAuth. Then create a `.google.yml` in your home directory with the following structure.
|
@@ -60,21 +60,21 @@ file:
|
|
60
60
|
|
61
61
|
To find discrepancies between number of running instances and purchased instances, run:
|
62
62
|
|
63
|
-
$
|
63
|
+
$ sport-ngin-aws-auditor audit account1
|
64
64
|
|
65
65
|
Any running instances that are not matched with a reserved instance with show up as yellow (with the negative number indicating the amount), the reserved instances that are not matched with an running instance will show up in red (with the positive number indicating the amount), and any reserved instances and running instances that match will show up in green. Any instances in blue with asteriks have a special tag that can either be specified in the audit command or will be defaulted to `no-reserved-instance`.
|
66
66
|
|
67
67
|
To specify your own tag name, run:
|
68
68
|
|
69
|
-
$
|
69
|
+
$ sport-ngin-aws-auditor audit --tag=your_custom_tag account1
|
70
70
|
|
71
71
|
If you don't want to use any tag at all, run:
|
72
72
|
|
73
|
-
$
|
73
|
+
$ sport-ngin-aws-auditor audit --no_tag account1
|
74
74
|
|
75
75
|
To print a condensed version of the discrepancies to a Slack account (instead of printing to the terminal), run:
|
76
76
|
|
77
|
-
$
|
77
|
+
$ sport-ngin-aws-auditor audit --slack account1
|
78
78
|
|
79
79
|
For this option to use a designated channel, username, icon/emoji, and webhook, set up a global config file that should look like this:
|
80
80
|
|
@@ -88,7 +88,7 @@ slack:
|
|
88
88
|
|
89
89
|
The default is for the file to be called `.aws_auditor.yml` in your home directory, but to pass in a different path, feel free to pass it in via command line like this:
|
90
90
|
|
91
|
-
$
|
91
|
+
$ sport-ngin-aws-auditor --config="/PATH/TO/FILE/slack_file_creds.yml" audit --slack staging
|
92
92
|
|
93
93
|
The webhook urls for slack can be obtained [here](https://api.slack.com/incoming-webhooks).
|
94
94
|
|
@@ -96,13 +96,13 @@ The webhook urls for slack can be obtained [here](https://api.slack.com/incoming
|
|
96
96
|
|
97
97
|
To list information about all running instances in your account, run:
|
98
98
|
|
99
|
-
$
|
99
|
+
$ sport-ngin-aws-auditor inspect account1
|
100
100
|
|
101
101
|
### The Export Command
|
102
102
|
|
103
103
|
To export audit information to a Google Spreadsheet, make sure you added a `.google.yml` and run:
|
104
104
|
|
105
|
-
$
|
105
|
+
$ sport-ngin-aws-auditor export -d account1
|
106
106
|
|
107
107
|
## Contributing
|
108
108
|
|
@@ -23,9 +23,10 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_dependency 'gli', '~> 2.10'
|
24
24
|
spec.add_dependency 'highline', '~> 1.6'
|
25
25
|
spec.add_dependency 'google_drive', '~> 1.0.0.pre2'
|
26
|
+
spec.add_dependency 'google-api-client', '~> 0.8.6'
|
26
27
|
spec.add_dependency 'slack-notifier', '~> 1.5.1'
|
27
|
-
spec.add_dependency 'rack', '1.3.0'
|
28
|
-
spec.add_dependency 'activesupport', '3.2'
|
28
|
+
spec.add_dependency 'rack', '~> 1.3.0'
|
29
|
+
spec.add_dependency 'activesupport', '~> 3.2'
|
29
30
|
|
30
31
|
spec.add_development_dependency "bundler", "~> 1.7"
|
31
32
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sport_ngin_aws_auditor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elliot Hursh
|
@@ -82,6 +82,20 @@ dependencies:
|
|
82
82
|
- - "~>"
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: 1.0.0.pre2
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: google-api-client
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 0.8.6
|
92
|
+
type: :runtime
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - "~>"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 0.8.6
|
85
99
|
- !ruby/object:Gem::Dependency
|
86
100
|
name: slack-notifier
|
87
101
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,28 +114,28 @@ dependencies:
|
|
100
114
|
name: rack
|
101
115
|
requirement: !ruby/object:Gem::Requirement
|
102
116
|
requirements:
|
103
|
-
- -
|
117
|
+
- - "~>"
|
104
118
|
- !ruby/object:Gem::Version
|
105
119
|
version: 1.3.0
|
106
120
|
type: :runtime
|
107
121
|
prerelease: false
|
108
122
|
version_requirements: !ruby/object:Gem::Requirement
|
109
123
|
requirements:
|
110
|
-
- -
|
124
|
+
- - "~>"
|
111
125
|
- !ruby/object:Gem::Version
|
112
126
|
version: 1.3.0
|
113
127
|
- !ruby/object:Gem::Dependency
|
114
128
|
name: activesupport
|
115
129
|
requirement: !ruby/object:Gem::Requirement
|
116
130
|
requirements:
|
117
|
-
- -
|
131
|
+
- - "~>"
|
118
132
|
- !ruby/object:Gem::Version
|
119
133
|
version: '3.2'
|
120
134
|
type: :runtime
|
121
135
|
prerelease: false
|
122
136
|
version_requirements: !ruby/object:Gem::Requirement
|
123
137
|
requirements:
|
124
|
-
- -
|
138
|
+
- - "~>"
|
125
139
|
- !ruby/object:Gem::Version
|
126
140
|
version: '3.2'
|
127
141
|
- !ruby/object:Gem::Dependency
|