Skip to content

Conversation

@oskara
Copy link

@oskara oskara commented Sep 1, 2016

Hi,

We are using cumulus to deploy stacks on different accounts. When deploying the same stack (megastack) against different accounts there are some difficulties with the current implementation, hence the following commits:
50646e7 Add global variables
9517fca Add argument for overriding global variables
a71e1f9 examples: add global var

Also, we ran in to a size problem with one of our larger stacks:
8ddfb19 Add compact body argument

To be able to deploy the stack on the same account multiple times one need another prefix:
2517ec8 Add stack prefix argument

And finally - some times we run cumulus on our desktop where highlighting is a good idea, but when deploying using e.g. Jenkins you might want to turn highlighting off for the same stack. This is what the following commit takes care of:
88aadd1 Add --[no-]highlight output argument

Hope you're interested and let me know any comments or feedback!

Thanks,
Oskar

oskara added 6 commits August 31, 2016 15:19
This feature will pack the json by removing indent spaces and newlines.

This allows to circumvent:
"Member must have length less than or equal to 51200"
Add --prefix argument to be able to override what the created stacks
should be prefixed with.
Some values might be passed in to every stack. Keep them as global
variables instead of having to update in many places.

The global vars are added in the mega stack:
megastack:
  # Global vars
  vars:
    globalVar1: Value

It can then be referenced in the params section of a stack:
  stack:
    params:
      type: global
      variable: globalVar1
To easily override one of your globals you can now pass one or
many --override-global arguments.

This can be useful to override for instance a cognito pool or an email
adress depending on which account you are deploying the stack.
Depending on what environment you are running on you might want colors
or not. This allows you to configure it when calling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant