Skip to content

Commit

Permalink
Add IAM_CAPABILITIES.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvind Kunday committed Sep 28, 2015
1 parent 9cd55ee commit 25c25b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/stackup/stack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def create(template, parameters)
response = cf.create_stack(:stack_name => name,
:template_body => template,
:disable_rollback => true,
:capabilities => ["CAPABILITY_IAM"],
:parameters => parameters)
wait_till_end
!response[:stack_id].nil?
Expand All @@ -36,7 +37,7 @@ def deploy(template, parameters = [])

def update(template, parameters)
return false unless deployed?
response = cf.update_stack(:stack_name => name, :template_body => template, :parameters => parameters)
response = cf.update_stack(:stack_name => name, :template_body => template, :parameters => parameters, :capabilities => ["CAPABILITY_IAM"])
wait_till_end
!response[:stack_id].nil?
end
Expand Down
2 changes: 1 addition & 1 deletion stackup.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
Gem::Specification.new do |spec|

spec.name = "stackup"
spec.version = "0.0.5"
spec.version = "0.0.6"
spec.authors = ["Arvind Kunday", "Mike Williams"]
spec.email = ["[email protected]", "[email protected]"]
spec.summary = "Tools for deployment to AWS"
Expand Down

0 comments on commit 25c25b1

Please sign in to comment.