Commit fffd223f authored by Daisuke Fujita's avatar Daisuke Fujita

Define CLI command iamgm for IAM Group Membership

parent e84c1954
......@@ -43,6 +43,11 @@ module Terraforming
execute(Terraforming::Resource::IAMGroup, options)
end
desc "iamgm", "IAM Group Membership"
def iamgm
execute(Terraforming::Resource::IAMGroupMembership, options)
end
desc "iamgp", "IAM Group Policy"
def iamgp
execute(Terraforming::Resource::IAMGroupPolicy, options)
......
......@@ -81,6 +81,13 @@ module Terraforming
it_behaves_like "CLI examples"
end
describe "iamgm" do
let(:klass) { Terraforming::Resource::IAMGroupMembership }
let(:command) { :iamgm }
it_behaves_like "CLI examples"
end
describe "iamgp" do
let(:klass) { Terraforming::Resource::IAMGroupPolicy }
let(:command) { :iamgp }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment