prima-twig 0.42.5 → 0.42.6
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/bin/twig-feature +14 -1
- 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: 9380c26518c53e3a6c0687c3741b76c18cc0704d24008129b9497a01abd7d444
|
|
4
|
+
data.tar.gz: c70591fa281c453d0a3520934fd95cfd005d4f2596f80cd241e3c26f0bceff9a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c3fcf2b80d39e87c38deda7db4ea0038775fc05487a056d9c2837d8d4b6741cdd3f87d721d63af3b80df8e211a858470198951009d684bc3ebd0cfd58ab0bdd
|
|
7
|
+
data.tar.gz: 9e52903bf85b86c8f6c638a935406262c28b4ff33870d6167ddee13f8c5db996e39027443df72f56978f87e4ab2160d522efb4b4b2f8a158b63e21f7c9236bca
|
data/bin/twig-feature
CHANGED
|
@@ -53,6 +53,7 @@ class Release
|
|
|
53
53
|
}
|
|
54
54
|
@base_stack_name_alb = 'ecs-alb-http-public-qa-'
|
|
55
55
|
@base_stack_name_alb_ws = 'ecs-alb-ws-public-qa-'
|
|
56
|
+
@ami_id = get_ami_id("asg-allinone-staging")
|
|
56
57
|
end
|
|
57
58
|
|
|
58
59
|
def execute!(args)
|
|
@@ -2679,7 +2680,7 @@ class Release
|
|
|
2679
2680
|
Dir.chdir "../../"
|
|
2680
2681
|
end
|
|
2681
2682
|
|
|
2682
|
-
def create_asg_stack(stack_name, tags = [])
|
|
2683
|
+
def create_asg_stack(stack_name, ami_id, tags = [])
|
|
2683
2684
|
stack_body = IO.read('cloudformation/stacks/asg/ecs-asg-allinone.yml')
|
|
2684
2685
|
parameters = [
|
|
2685
2686
|
{
|
|
@@ -2693,6 +2694,10 @@ class Release
|
|
|
2693
2694
|
{
|
|
2694
2695
|
parameter_key: "ECSClusterName",
|
|
2695
2696
|
parameter_value: @ecs_cluster_name
|
|
2697
|
+
},
|
|
2698
|
+
{
|
|
2699
|
+
parameter_key: "AMIID",
|
|
2700
|
+
parameter_value: @ami_id
|
|
2696
2701
|
}
|
|
2697
2702
|
]
|
|
2698
2703
|
create_stack(stack_name, stack_body, parameters, tags, @cf_role)
|
|
@@ -2996,6 +3001,14 @@ class Release
|
|
|
2996
3001
|
end
|
|
2997
3002
|
end
|
|
2998
3003
|
end
|
|
3004
|
+
|
|
3005
|
+
def get_ami_id(stack_name)
|
|
3006
|
+
get_stack_parameters(stack_name).each do |param|
|
|
3007
|
+
if param.parameter_key == "AMIID"
|
|
3008
|
+
return param.parameter_value
|
|
3009
|
+
end
|
|
3010
|
+
end
|
|
3011
|
+
end
|
|
2999
3012
|
end
|
|
3000
3013
|
|
|
3001
3014
|
def help_content
|