-
Notifications
You must be signed in to change notification settings - Fork 6
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
Bug: resource "anypoint_bg" can not be created in for_each loop #54
Comments
Workaround is to run terraform with https://developer.hashicorp.com/terraform/cli/commands/apply#parallelism-n |
Do you have any error message @artem-kosenko pointing to the provider itself ? It might be a limitation of the Mulesoft API. |
I'm using the provider without any issue. Here is my code :
PS: Just the flag entitlements_createenvironments is not working (always set to false) |
I have a map with just 2 business groups to be created (later it will be much more). I described the resource like this:
and during terraform apply (and destroy) it failed each time both business_groups (BG) should be created/deleted at the same time.
In case I add 1st BG in the
var.business_groups
, then performterraform apply
, then add 2nd BG invar.business_groups
, then performterraform apply
one more time - everything works perfect. But in case I runterraform destroy
and it tries to delete both of then at the same time it failed randomly on BG1 of or BG2. 2nd try to runterraform destroy
deletes failed resource w/o an issue.so, it look like it is some library or api limitation under the hood that does not allows to create/delete 2 an more business groups at the same time, but works fine in case that are creating/deleting one by one. I thing some retry logic inside the provider for that kind of resource might help.
Or it might be implemented as a separate resource definition like below, that will perform each
business_group
block as a separate API call.The text was updated successfully, but these errors were encountered: