Sha256: d86700b1c5cc0ac9d815edfcea4cfd003919a31de8c85e7de7561a2fb1f52def
Contents?: true
Size: 1.88 KB
Versions: 1
Compression:
Stored size: 1.88 KB
Contents
# Miam Miam is a tool to manage IAM. It defines the state of IAM using DSL, and updates IAM according to DSL. ## Installation Add this line to your application's Gemfile: ```ruby gem 'miam' ``` And then execute: $ bundle Or install it yourself as: $ gem install miam --pre ## Usage ```sh export AWS_ACCESS_KEY_ID='...' export AWS_SECRET_ACCESS_KEY='...' export AWS_REGION='us-east-1' miam -e -o IAMfile # export IAM vi IAMfile miam -a --dry-run miam -a # apply `IAMfile` ``` ## Help ``` Usage: miam [options] -p, --profile PROFILE_NAME --credentials-path PATH -k, --access-key ACCESS_KEY -s, --secret-key SECRET_KEY -r, --region REGION -a, --apply -f, --file FILE --dry-run --account-output FILE -e, --export -o, --output FILE --split --no-color --no-progress --debug ``` ## IAMfile example ```ruby require 'other/iamfile' user "bob", path: "/developer/" do login_profile password_reset_required: true groups( "Admin" ) policy "bob-policy" do {"Version"=>"2012-10-17", "Statement"=> [{"Action"=> ["s3:Get*", "s3:List*"], "Effect"=>"Allow", "Resource"=>"*"}]} end end user "mary", path: "/staff/" do # login_profile password_reset_required: true groups( # no group ) policy "s3-readonly" do {"Version"=>"2012-10-17", "Statement"=> [{"Action"=> ["s3:Get*", "s3:List*"], "Effect"=>"Allow", "Resource"=>"*"}]} end policy "route53-readonly" do {"Version"=>"2012-10-17", "Statement"=> [{"Action"=> ["route53:Get*", "route53:List*"], "Effect"=>"Allow", "Resource"=>"*"}]} end end group "Admin", path: "/admin/" do policy "Admin" do {"Statement"=>[{"Effect"=>"Allow", "Action"=>"*", "Resource"=>"*"}]} end end ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
miam-0.1.0.beta | README.md |