Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple --config-file values #63

Open
andrewdmay opened this issue Jul 1, 2021 · 0 comments
Open

Support multiple --config-file values #63

andrewdmay opened this issue Jul 1, 2021 · 0 comments

Comments

@andrewdmay
Copy link
Collaborator

For some use cases where there are a lot of config files, but all the differences are in the all section, it would be useful to have the other environments defined separately in a file that can be re-used for different stacks.

Primary configuration file (config.yml):

---
Environment: all
StackName: 'MyTestStack-{{ Environment }}'
Template: template.yml
Parameters:
  Environment: '{{ Environment }}'
Capabilities:
  - CAPABILITY_IAM

Environments configuration file (environments.yml):

---
Environment: dev
Region: us-east-1
---
Environment: test
Region: us-east-1
---
Environment: prod
Region: us-east-1

Then specifying --config-file config,yml --config-file environments.yml would use the combination of the two.

Some questions about this approach:

  • If the same environment is defined in both files, will it try and merge the configuration, if so, which one wins?
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

No branches or pull requests

1 participant