Skip to content

Instantly share code, notes, and snippets.

View techshell's full-sized avatar

Hatim Abdalla techshell

View GitHub Profile

Keybase proof

I hereby claim:

  • I am techshell on github.
  • I am hatim (https://keybase.io/hatim) on keybase.
  • I have a public key whose fingerprint is 8E00 BEA3 C793 BD60 78E0 415D 73D9 141F 7648 0609

To claim this, I am signing this object:

require 'IniFile'
aws_profile = 'hatim'
knife[:aws_access_key_id] = IniFile.load(File.join(File.expand_path('~'), '.aws', 'credentials'))["#{aws_profile}"]['aws_access_key_id']
knife[:aws_secret_access_key] = IniFile.load(File.join(File.expand_path('~'), '.aws', 'credentials'))["#{aws_profile}"]['aws_secret_access_key']
knife[:aws_region] = IniFile.load(File.join(File.expand_path('~'), '.aws', 'config'))["profile #{aws_profile}"]['region']
[:cloudformation, :options].inject(knife){ |m,k| m[k] ||= Mash.new }
knife[:cloudformation][:options][:disable_rollback] = false
knife[:cloudformation][:options][:capabilities] = ['CAPABILITY_IAM']