-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Im trying to use the resource "network_groups" as it is a great time-saver instead of making each object individually.
So, I create all network groups using the bulk resource "network_groups" and then link them to an access-rules.
The problem comes if I then change the name of one of the network groups. Then, I cant "apply" anymore as terraform would like to:
Destroy the old network group (old name)
Create the new network group (new name)
This seems impossible as terraform only have one resource object (network_groups) which must do both operations.
If it is done before updating the access-rule, it fails because the new network group doesnt exist.
If its done after the access-rule it fails at the network_groups resource because the old network group cant be destroyed yet (still connected to the access-rule).
I fail to see how I should code this so it works.