Skip to content

Instantly share code, notes, and snippets.

@cwjohnston
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save cwjohnston/5ab3e35b217efdbd4e39 to your computer and use it in GitHub Desktop.

Select an option

Save cwjohnston/5ab3e35b217efdbd4e39 to your computer and use it in GitHub Desktop.
How to Sparkle
gem 'knife-cloudformation', :git => 'https://github.com/heavywater/knife-cloudformation.git', :ref => 'feature/miasma'
gem 'miasma', :git => 'https://github.com/chrisroberts/miasma.git', :ref => 'develop'
knife[:cfn_disable_rollback] = ENV['CLOUDFORMATION_DISABLE_ROLLBACK'].to_s.downcase == 'false' ? false : true
knife[:aws_access_key_id] = ENV['AWS_ACCESS_KEY_ID']
knife[:aws_secret_access_key] = ENV['AWS_SECRET_ACCESS_KEY']
[:cloudformation, :options].inject(knife){|m,k| m[k] ||= Mash.new }
knife[:cloudformation][:options][:disable_rollback] = knife[:cfn_disable_rollback]
knife[:cloudformation][:options][:capabilities] = ['CAPABILITY_IAM']
knife[:cloudformation][:processing] = true
knife[:cloudformation][:credentials] = {
:aws_region => ENV['AWS_REGION']
:aws_access_key_id => knife[:aws_access_key_id],
:aws_secret_access_key => knife[:aws_secret_access_key]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment