README.md in miam-0.1.0.beta vs README.md in miam-0.1.0

- old
+ new

@@ -2,10 +2,14 @@ Miam is a tool to manage IAM. It defines the state of IAM using DSL, and updates IAM according to DSL. +[![Gem Version](https://badge.fury.io/rb/miam.svg)](http://badge.fury.io/rb/miam) +[![Build Status](https://travis-ci.org/winebarrel/miam.svg?branch=master)](https://travis-ci.org/winebarrel/miam) +[![Coverage Status](https://coveralls.io/repos/winebarrel/miam/badge.png?branch=master)](https://coveralls.io/r/winebarrel/miam?branch=master) + ## Installation Add this line to your application's Gemfile: ```ruby @@ -16,11 +20,11 @@ $ bundle Or install it yourself as: - $ gem install miam --pre + $ gem install miam ## Usage ```sh export AWS_ACCESS_KEY_ID='...' @@ -56,11 +60,11 @@ ## IAMfile example ```ruby require 'other/iamfile' -user "bob", path: "/developer/" do +user "bob", :path => "/developer/" do login_profile password_reset_required: true groups( "Admin" ) @@ -74,11 +78,11 @@ "Effect"=>"Allow", "Resource"=>"*"}]} end end -user "mary", path: "/staff/" do +user "mary", :path => "/staff/" do # login_profile password_reset_required: true groups( # no group ) @@ -102,11 +106,25 @@ "Effect"=>"Allow", "Resource"=>"*"}]} end end -group "Admin", path: "/admin/" do +group "Admin", :path => "/admin/" do policy "Admin" do {"Statement"=>[{"Effect"=>"Allow", "Action"=>"*", "Resource"=>"*"}]} end +end +``` + +## Rename + +```ruby +require 'other/iamfile' + +user "bob2", :path => "/developer/", :renamed_from => "bob" do + # ... +end + +group "Admin2", :path => "/admin/". :renamed_from => "Admin" do + # ... end ```