sync_rules_and_sg_lifecycles
doesn't take in account module enabled = false
#43
Labels
bug
🐛 An issue with the system
Found a bug? Maybe our Slack Community can help.
Describe the Bug
We have a SG which only needs to be created in specific environments. For this we use
enabled = <condition>
.However, it seems that one resource is not looking at the
enabled
as it wants to create anull_resource
even withenabled = false
.# module.vpn_sg_azure.null_resource.sync_rules_and_sg_lifecycles[0] will be created + resource "null_resource" "sync_rules_and_sg_lifecycles" { + id = (known after apply) + triggers = { + "sg_ids" = null } }
Not a big problem as this is a
null_resource
and doesn't create anything in the AWS environment, but since the module is disabled for this environment it should not create this.Expected Behavior
This module should not be creating any resources if
enabled = false
.Steps to Reproduce
Based off the example:
The text was updated successfully, but these errors were encountered: