Please make is possible to not create this resource by setting a flag
khonourhmrc opened this issue · 0 comments
Have a question? Please checkout our Slack Community or visit our Slack Archive.
Describe the Feature
It should be possible to say "do not create this resource if a flag is passed to the module much like the aws elb resource which allows this by way of its create_elb
variable, which sets count to 0 or 1 depending. This would allow you to decide to deploy or not deploy the resource based on the config flag.
Expected Behavior
Set enabled or create flag to false and no resource should be created, the default should be true.
Use Case
We have environments where people want some resources and not others deployed for various reasons, this means in some cases we don't want albs deployed because there are no machines deployed for that (usually a sandbox environment where only a few resources from the script are required), at the moment this module only allows for the creation, there is no way to turn that off.
Describe Ideal Solution
The flag should be implemented to disable the creation of the resource.
Alternatives Considered
There are no alternatives I can't set a count parameter on a module right now.
Additional Context
I feel It's a small but worthwhile thing to implement and ultimately makes the module more flexible allowing a default of true will not impact users who currently use the module.