Closed steffencircle closed 2 years ago
Can you try again with v4? We've changed how projects are handled and I'm hoping it fixed this.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
TL;DR
We are using the
regular_service_perimter
and thebridge_service_perimeter
Modules in order to add Project-Numbers to the Perimeter and the respective Bridge.During the initial CREATE operation, projects first need to be added to the "Regular" Perimeter and after that to the "Bridge".
However when a Project is removed, it first needs to be removed from the "Bridge" and only after that from the "Regular" Perimeter.
I found no way in order to enforce such a behaviour.
Expected behavior
Somehow Terraform needs to perform the update backwards than it did during creation.
Observed behavior
I used the code below to demonstrate the issue. Basically during the initial apply, all projects get created and correctly added to the Perimter and then the Bridge.
Then in the next run i am changing the
perimter_projects
local values in order to simulate the removal of a Project.What we then see is that TF first tries to remove the Project from the Perimeter,which results in the following error message:
Terraform Configuration
Terraform Version
Additional information
No response