knife-cfn 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed956b7bf7624fb88560a3aec0e5bc243b8a0169
4
- data.tar.gz: 770c634481f6a69b773fa4602c521f0633b3664b
3
+ metadata.gz: 864fd87f54cab11ae5da5478f3cd543221dae599
4
+ data.tar.gz: 70d1e9a2b2f03bcf899aede55617b312bf4211ad
5
5
  SHA512:
6
- metadata.gz: d307cc10dd135f22c375397678232228331ae59cb9429dffc3b0a346169a0c6e7cc74029942ae9f067906715beafeaa5905de0093fecea7a222a7f8ac67dd92b
7
- data.tar.gz: 67be89dad9b22c72d132529c8baefaaa9cf430305125e0415405bc959c6918e155d6d409f6358b5464d5747da878c4edeb0085426d5b5c1728a0534f5f17210c
6
+ metadata.gz: cd0d2cee60bd07b08e69438fe31faad2451312380a75900c128604c20d2e88ca9429c5695c82077033fc845168ca3d2ce9e6789f89c9d810c9c9743b93eaa2a9
7
+ data.tar.gz: 4dc5a4e00fd97fea5118712f42e0697c64aa8971a6e4188ed392381d3089c51e245d7f035df933bf18b45cde31e3e811e80be25745d6b76faedfbf8ec3c71f95
@@ -30,7 +30,7 @@ class Chef
30
30
  banner "knife cfn create <stack name> (options)"
31
31
 
32
32
  option :capabilities,
33
- :short => "-C CAPABILITY..",
33
+ :short => "-c CAPABILITY..",
34
34
  :long => "--capabilities CAPABILITY1,CAPABILITY2,CAPABILITY3..",
35
35
  :description => "The explicitly approved capabilities that may be used during this stack creation",
36
36
  :proc => Proc.new { |capabilities| capabilities.split(',') }
@@ -38,7 +38,7 @@ class Chef
38
38
  option :disable_rollback,
39
39
  :short => "-d",
40
40
  :long => "--disable-rollback",
41
- :description => "Flag to disable rollback of created resources when failures are encountered during stack creation. The default value is 'false'",
41
+ :description => "Flag to disable rollback of created resources when failures are encountered. The default value is 'false'",
42
42
  :proc => Proc.new { |d| Chef::Config[:knife][:disable_rollback] = "true" }
43
43
 
44
44
  option :template_file,
@@ -71,6 +71,46 @@ class Chef
71
71
  :description => "Path of the URL that contains the template. This must be a reference to a template in an S3 bucket in the same region that the stack will be created in",
72
72
  :proc => Proc.new { |u| Chef::Config[:knife][:template_url] = u }
73
73
 
74
+ option :aws_credential_file,
75
+ :long => "--aws-credential-file FILE",
76
+ :description => "File containing AWS credentials as used by aws cmdline tools",
77
+ :proc => Proc.new { |key| Chef::Config[:knife][:aws_credential_file] = key }
78
+
79
+ option :aws_profile,
80
+ :long => "--aws-profile PROFILE",
81
+ :description => "AWS profile, from credential file, to use",
82
+ :default => 'default',
83
+ :proc => Proc.new { |key| Chef::Config[:knife][:aws_profile] = key }
84
+
85
+ option :aws_access_key_id,
86
+ :short => "-A ID",
87
+ :long => "--aws-access-key-id KEY",
88
+ :description => "Your AWS Access Key ID",
89
+ :proc => Proc.new { |key| Chef::Config[:knife][:aws_access_key_id] = key }
90
+
91
+ option :aws_secret_access_key,
92
+ :short => "-K SECRET",
93
+ :long => "--aws-secret-access-key SECRET",
94
+ :description => "Your AWS API Secret Access Key",
95
+ :proc => Proc.new { |key| Chef::Config[:knife][:aws_secret_access_key] = key }
96
+
97
+ option :aws_session_token,
98
+ :long => "--aws-session-token TOKEN",
99
+ :description => "Your AWS Session Token, for use with AWS STS Federation or Session Tokens",
100
+ :proc => Proc.new { |key| Chef::Config[:knife][:aws_session_token] = key }
101
+
102
+ option :region,
103
+ :long => "--region REGION",
104
+ :description => "Your AWS region",
105
+ :proc => Proc.new { |key| Chef::Config[:knife][:region] = key }
106
+
107
+ option :use_iam_profile,
108
+ :long => "--use-iam-profile",
109
+ :description => "Use IAM profile assigned to current machine",
110
+ :boolean => true,
111
+ :default => false,
112
+ :proc => Proc.new { |key| Chef::Config[:knife][:use_iam_profile] = key }
113
+
74
114
  def run
75
115
  $stdout.sync = true
76
116
 
@@ -1,3 +1,3 @@
1
1
  module KnifeCfn
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-cfn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neill Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-30 00:00:00.000000000 Z
11
+ date: 2016-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog