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.
- checksums.yaml +4 -4
- data/README.md +28 -0
- data/lib/miam/version.rb +1 -1
- data/lib/miam.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ac8e67254e534d09e4e895b9beb570cff296ee0
|
4
|
+
data.tar.gz: 36f7a0fa01fb1af9e4befd0d1f491a9b5742a567
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/miam.rb
CHANGED
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.
|
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-
|
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
|