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 conditional creation for the database too. #36

Merged
merged 7 commits into from
Jan 31, 2018
Merged

Support conditional creation for the database too. #36

merged 7 commits into from
Jan 31, 2018

Conversation

jimrazmus
Copy link
Contributor

I want to be able to conditionally create databases. For example, I may only want read replica databases in the staging and production environments. Lower tiered environments would not have a read replica. The count variable provides that flexibility while maintaining the DRY principle. In the absence of this variable, I have to maintain multiple, environment specific, terraform files.

@antonbabenko
Copy link
Member

Good work, but adjust outputs when count is set to 0 in one of the recent version of AWS provider. Something like - element(concat(..., list("")), 0)

@jimrazmus
Copy link
Contributor Author

@antonbabenko I believe this PR is now ready for consideration. Thank you!

antonbabenko added a commit that referenced this pull request Jan 31, 2018
@antonbabenko antonbabenko merged commit 8a5af3e into terraform-aws-modules:master Jan 31, 2018
@antonbabenko
Copy link
Member

Thanks! Always run at least one of examples to reveal the broken parts, I have updated outputs to fix it.

New release is v1.10.0.

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants