Commit 0a0d2517 authored by Daisuke Fujita's avatar Daisuke Fujita

Add CLI for IAM Group

parent 0f99f535
......@@ -30,6 +30,12 @@ module Terraforming
execute(Terraforming::Resource::ELB, options)
end
desc "iamg", "IAM Group"
option :tfstate, type: :boolean
def iamg
execute(Terraforming::Resource::IAMGroup, options)
end
desc "iamu", "IAM User"
option :tfstate, type: :boolean
def iamu
......
......@@ -82,6 +82,22 @@ module Terraforming
end
end
describe "iamg" do
context "without --tfstate" do
it "should export IAM group tf" do
expect(Terraforming::Resource::IAMGroup).to receive(:tf)
described_class.new.invoke(:iamg, [], {})
end
end
context "with --tfstate" do
it "should export IAM group tfstate" do
expect(Terraforming::Resource::IAMGroup).to receive(:tfstate)
described_class.new.invoke(:iamg, [], { tfstate: true })
end
end
end
describe "iamu" do
context "without --tfstate" do
it "should export IAM user tf" do
......
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