bbc-cosmos-tools 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bbc/cosmos/tools/commands/stack.rb +5 -1
- data/lib/bbc/cosmos/tools/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 290eb19817e507234002b5b87648cbb4dab58f41
|
|
4
|
+
data.tar.gz: f0cd4413d6582d16b2f4bd87107542d313f50c09
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f29905a315f5c8ec5ed97dc3560382c12b6c6e44958561d81591d8f69ed57a42b46164149d3cbf9f08a513df6c2c0665da8eeb1a0cae7b04fa26f82b082a59fa
|
|
7
|
+
data.tar.gz: c66472f083bdbcc14296ea93a6b6cf1dbae7446435073afdb91b4e560a7ee24b9c5b8fd48058b47dcddcc687628308d1feaa47bbd86b35059bae1ddb4b31bbcc
|
|
@@ -95,7 +95,6 @@ module BBC
|
|
|
95
95
|
|
|
96
96
|
stack_name = "#{options[:env]}-#{component}-#{options[:stack]}"
|
|
97
97
|
data = cloudformation(component, options, false)
|
|
98
|
-
data['Parameters']['ImageId'] = latest_ami_for(component, options[:env])
|
|
99
98
|
|
|
100
99
|
post_data = {
|
|
101
100
|
'template' => data,
|
|
@@ -177,6 +176,11 @@ module BBC
|
|
|
177
176
|
Tools::Cloudformation::Generator.create(component, config, options, to_json) do
|
|
178
177
|
component_identifier = options[:group].nil? ? component : options[:group]
|
|
179
178
|
instance_eval config_data.cf_templates(component_identifier, options[:stack])
|
|
179
|
+
end.tap do |data|
|
|
180
|
+
if data['Parameters']['ImageId']
|
|
181
|
+
data['Parameters']['ImageId']['Default'] = latest_ami_for(component, options[:env])
|
|
182
|
+
end
|
|
183
|
+
|
|
180
184
|
end
|
|
181
185
|
end
|
|
182
186
|
end
|