Closed setv-n13 closed 4 weeks ago
this works fine
Did you try this after the above crash or did you try enabling the plugin on a cluster where you didn't have tried enabling it before?
If you can post the code for a complete (but shorter) module with only cloudamqp_plugin
and/or cloudamqp_plugin_community
we can try it our end
Did you try this after the above crash or did you try enabling the plugin on a cluster where you didn't have tried enabling it before? I tried to enable a plugin in a cluster where no modules were enabled before.
First, I tried doing it via module - It caused a crash, then I tried to enable a plugin in the same cluster but with cloudamqp_plugin_community
resource outside the module - It worked.
If you can post the code for a complete (but shorter) module with only cloudamqp_plugin and/or cloudamqp_plugin_community we can try it our end
here is the complete module: https://github.com/setv-n13/terraform-cloudamqp-module
@setv-n13 Thanks for reporting this. We managed to identify a bug in both data sources related to plugins. There will be a fix for this during the day with a new release.
I prepared a custom cloudamqp module which includes the following templates:
Then I successfully used this module to create a cluster and other related resources (but without any plugins):
Later I tried to add a community plugin updating the related variable:
But this change causes a crash.
terraform plan
Output:If I try to modify/create any other resources in the module besides
cloudamqp_plugin
andcloudamqp_plugin_community
- everything works fine. Also if I try to createcloudamqp_plugin_community
resource outside the module with:this works fine:
Can you please advise if this is a problem with my code or the provider issue?