wallix / awless

A Mighty CLI for AWS
http://awless.io/
Apache License 2.0
4.97k stars 263 forks source link

Compose variable names #247

Open aronneagu opened 5 years ago

aronneagu commented 5 years ago

Hello,

I have a request for a feature regarding naming of variables. I would like to be able to do something like

project_name = test2
subnet.name = ${project_name}-subnet
instance.name = ${project_name}-ec2

But I get the error

[error]   error parsing template at line 7 (char 11):
    -> subnet.name =

And I would like subnet.name to be test-subnet

Is something like this possible? It would be useful in host of different scenarios when I would just change the project_name and use that as a suffix to compose the names of vpcs, subnets, ec2 instances, etc.

varunchandak commented 5 years ago

you should probably look at awless-templates