miam 0.2.3.beta → 0.2.3.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -0
  3. data/lib/miam/version.rb +1 -1
  4. data/lib/miam.rb +2 -0
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 041db7d696b371ba9e100126f05d5855c1d06156
4
- data.tar.gz: 17757d1a0efd25ea076d4a76fd331db0dad5a74e
3
+ metadata.gz: 9ac8e67254e534d09e4e895b9beb570cff296ee0
4
+ data.tar.gz: 36f7a0fa01fb1af9e4befd0d1f491a9b5742a567
5
5
  SHA512:
6
- metadata.gz: 61aed42e0653a7fb07a4cb1989bd23e077cf1df962110ad1d359b8bce09b9ede67cb1e5fc138e88eb6ba172a00d33cc2c2d598c2cbdf303db4aa455e2fd91d2c
7
- data.tar.gz: c1e196039250f21678f48be94c704cd896b259c20449a1753a715fde5418ffbb62b25c05fa3e4a2c85c199dbe2013d236b763b8ffb1fe7f6f98cbbf8dbeddde3
6
+ metadata.gz: 4e3ecba7328c5fbc2a282346b83537fc20491c5575ad2f0714048564c7761159a64cd28f711aee7d0bb934ca79c1a963165bc0ff0b609d30a81eee75a51e518d
7
+ data.tar.gz: 23d0ee2ecd7b47ec8d96937cf8eb64564b5b34d3923c110250df41c2119cc5074beb090f9763a0c9c6436b19036e5fe0286798700bf8189d805dac2fc741bb0f
data/README.md CHANGED
@@ -20,6 +20,8 @@ It defines the state of IAM using DSL, and updates IAM according to DSL.
20
20
  * Support Template
21
21
  * Add `--ignore-login-profile` option
22
22
  * Sort policy array
23
+ * `>= 0.2.3`
24
+ * Support Custom Managed Policy
23
25
 
24
26
  ## Installation
25
27
 
@@ -198,6 +200,32 @@ user "bob", :path => "/developer/" do
198
200
  end
199
201
  ```
200
202
 
203
+ ## Custom Managed Policy
204
+
205
+ ```ruby
206
+ managed_policy "my-policy", :path=>"/" do
207
+ {"Version"=>"2012-10-17",
208
+ "Statement"=>
209
+ [{"Effect"=>"Allow", "Action"=>"directconnect:Describe*", "Resource"=>"*"}]}
210
+ end
211
+
212
+ user "bob", :path => "/developer/" do
213
+ login_profile :password_reset_required=>true
214
+
215
+ groups(
216
+ "Admin"
217
+ )
218
+
219
+ policy "bob-policy" do
220
+ # ...
221
+ end
222
+
223
+ attached_managed_policies(
224
+ "arn:aws:iam::123456789012:policy/my-policy"
225
+ )
226
+ end
227
+ ```
228
+
201
229
  ## Use JSON
202
230
 
203
231
  ```sh
data/lib/miam/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Miam
2
- VERSION = '0.2.3.beta'
2
+ VERSION = '0.2.3.beta2'
3
3
  end
data/lib/miam.rb CHANGED
@@ -6,6 +6,8 @@ require 'singleton'
6
6
  require 'thread'
7
7
 
8
8
  require 'aws-sdk-core'
9
+ Aws.use_bundled_cert!
10
+
9
11
  require 'ruby-progressbar'
10
12
  require 'parallel'
11
13
  require 'term/ansicolor'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.beta
4
+ version: 0.2.3.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-23 00:00:00.000000000 Z
11
+ date: 2016-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core