uc3-sam-sceptre 0.0.19 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uc3-sam-sceptre/version.rb +1 -1
- data/lib/uc3-sam-sceptre.rb +2 -13
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33a80ad0974da62478f0699772d6ab24792f874a32c78be3b541c1bf23ec321a
|
4
|
+
data.tar.gz: 198f3bda7370ea1c5bd3e6751278569fbf97df4ae140977dabc7e913820fe191
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40a6daf80e3967c0375abacd402a3f571775140d0ae6643b3231ba8bae8f41bc1a042245fca73d18db46e0ac1cf67c727131e027e29213f72b22ddf48da64ae8
|
7
|
+
data.tar.gz: 96fdcbf9934f21ea931c6b80ec470bbe625bf6f9a0957b9d7666097f53c5d53bb4c677a977343ee450b3f4cb715789092394bce8a6066f4282bb2ca06c0786e1
|
data/lib/uc3-sam-sceptre.rb
CHANGED
@@ -67,7 +67,7 @@ module Uc3SamSceptre
|
|
67
67
|
# Run a SAM deploy
|
68
68
|
def deploy(guided: false)
|
69
69
|
args = [
|
70
|
-
"--stack
|
70
|
+
"--stack-name #{@stack_name}",
|
71
71
|
"--confirm-changeset #{!@auto}",
|
72
72
|
'--capabilities CAPABILITY_NAMED_IAM',
|
73
73
|
'--disable-rollback false',
|
@@ -80,9 +80,6 @@ module Uc3SamSceptre
|
|
80
80
|
args << "--image-repository #{_locate_value(key: @ecr_uri_key)}" unless @ecr_uri_key.nil?
|
81
81
|
|
82
82
|
args << "--guided" if guided
|
83
|
-
|
84
|
-
puts args
|
85
|
-
|
86
83
|
system "sam deploy #{args.join(' ')}"
|
87
84
|
end
|
88
85
|
|
@@ -114,13 +111,11 @@ puts args
|
|
114
111
|
end
|
115
112
|
|
116
113
|
@static_cf_params.each { |hash| overrides << _sam_param(key: hash[:template_param_name], value: hash[:value]) }
|
114
|
+
overrides
|
117
115
|
end
|
118
116
|
|
119
117
|
# Convert the Hash key and value into SAM deploy args
|
120
118
|
def _sam_param(key:, value:)
|
121
|
-
|
122
|
-
puts "Makin SAM Key: #{key} => #{value}"
|
123
|
-
|
124
119
|
return '' if key.nil? || value.nil?
|
125
120
|
|
126
121
|
"ParameterKey=#{key},ParameterValue=#{value}"
|
@@ -147,12 +142,6 @@ puts "Makin SAM Key: #{key} => #{value}"
|
|
147
142
|
param = @stack_exports.select do |export|
|
148
143
|
export.exporting_stack_id.include?(@prefix) && export.name.downcase.strip == key
|
149
144
|
end
|
150
|
-
|
151
|
-
puts @stack_exports.first
|
152
|
-
puts "Lookin for stack #{@prefix} with #{key}"
|
153
|
-
puts param.class.name
|
154
|
-
puts param.first&.value
|
155
|
-
|
156
145
|
param.first&.value
|
157
146
|
end
|
158
147
|
end
|