zalando-stups / lizzy

REST Service to deploy AWS CloudFormation templates using Senza
Apache License 2.0
21 stars 17 forks source link

Create multiple stacks with different names for same applicaiton #216

Open mohamedazouz opened 7 years ago

mohamedazouz commented 7 years ago

It gives me this error [AGENT] Stack not found: {{Arguments.StackName}}-20170718V379

When I tried to pass it sing command line it gives me with parameter file the following error:

[AGENT] Error: Parameter specified multiple times: "StackName"
SergKam commented 6 years ago

Problem is clearly here https://github.com/zalando-stups/lizzy/blob/master/lizzy/api.py#L109 Can we just try to replace the {{Arguments.any}} with one from provided parameters?

boure commented 6 years ago

I get other issues depending on the StackName:

boure commented 6 years ago

In the case where the StackName contains a parameter (e.g. appname-{{Arguments.Stage}}), the failing line seems to be https://github.com/zalando-stups/lizzy/blob/0d3b1a97a20e1d8b4b9e703a2af5ea319bc8f172/lizzy/api.py#L136 when lizzy tries to get the stack it just created.

In this case, Lizzy has logged Stack created and the stack can be found on AWS.