Skip to content

How to use the bulk objects #310

@alxgarder

Description

@alxgarder

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions