README.md in miam-0.2.3.beta vs README.md in miam-0.2.3.beta2

- old
+ new

@@ -18,10 +18,12 @@ * `>= 0.2.2` * Improve update (show diff) * Support Template * Add `--ignore-login-profile` option * Sort policy array +* `>= 0.2.3` + * Support Custom Managed Policy ## Installation Add this line to your application's Gemfile: @@ -192,9 +194,35 @@ # ... end attached_managed_policies( "arn:aws:iam::aws:policy/AmazonElastiCacheReadOnlyAccess" + ) +end +``` + +## Custom Managed Policy + +```ruby +managed_policy "my-policy", :path=>"/" do + {"Version"=>"2012-10-17", + "Statement"=> + [{"Effect"=>"Allow", "Action"=>"directconnect:Describe*", "Resource"=>"*"}]} +end + +user "bob", :path => "/developer/" do + login_profile :password_reset_required=>true + + groups( + "Admin" + ) + + policy "bob-policy" do + # ... + end + + attached_managed_policies( + "arn:aws:iam::123456789012:policy/my-policy" ) end ``` ## Use JSON