cloudformation_wrapper 0.2.17 → 0.2.18
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53ce0a0ba25787f588b4680e293e794c58acc23bc6df7544580e14385b44c080
|
4
|
+
data.tar.gz: 6fb9dc436fee225335a93b177820851e9095ad4e937c4e2174ae8359e3730851
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e18fbf34bb7a7b2fd9270371ca8f91170eacd56b110c77facd5a0172fbc72cf60aacc82a49d3790e7d492c0183ecffb16e9d1806dc8b313aa34a893bc0a2639
|
7
|
+
data.tar.gz: fdde423531a71873f802e3c3870d7442d23f39f40a96d24eb90981f32c197406e5d5a82a88ac72e74de88794ddd57d46b4e439f6ee17a01b2188571b866b299d
|
@@ -20,24 +20,19 @@ module CloudFormationWrapper
|
|
20
20
|
verified_options = verify_options(options)
|
21
21
|
|
22
22
|
if verified_options.key?('client')
|
23
|
-
puts 'cf string key'
|
24
23
|
cf_client = verified_options[:client]
|
25
24
|
elsif verified_options.key?(:client)
|
26
|
-
puts 'cf symbol key'
|
27
25
|
cf_client = verified_options[:client]
|
28
26
|
else
|
29
27
|
cf_client = Aws::CloudFormation::Client.new(credentials: credentials, region: region)
|
30
28
|
end
|
31
29
|
|
32
|
-
puts "CF Client #{cf_client.is_a? Aws::CloudFormation::Client}"
|
33
|
-
|
34
30
|
ensure_template_file_exists(verified_options[:template_path], cf_client)
|
35
31
|
|
36
32
|
deploy_stack(
|
37
33
|
verified_options[:parameters],
|
38
34
|
verified_options[:name],
|
39
35
|
verified_options[:template_path],
|
40
|
-
verified_options[:wait_for_stack],
|
41
36
|
cf_client
|
42
37
|
)
|
43
38
|
end
|
@@ -67,7 +62,7 @@ module CloudFormationWrapper
|
|
67
62
|
puts 'Valid Template File.'
|
68
63
|
end
|
69
64
|
|
70
|
-
def self.deploy_stack(parameters, stack_name, template_path, cf_client
|
65
|
+
def self.deploy_stack(parameters, stack_name, template_path, cf_client)
|
71
66
|
template_parameters = construct_template_parameters(parameters)
|
72
67
|
client_token = ENV.fetch('BUILD_NUMBER', SecureRandom.uuid.delete('-'))
|
73
68
|
old_stack = describe_stack(stack_name, cf_client)
|