Commit 95cfd5e
authored
fix(iam-admin): remove redundant IAM project service to prevent state conflict (#13016)
### Summary
This PR addresses a Terraform state conflict in the `java-iam-admin`
module's integration setup.
Previously, both the root `.cloud` module and the `java-iam-admin`
submodule were managing the `iam.googleapis.com` service activation on
the same project. In Terraform, managing the exact same physical cloud
resource in multiple places within the state tree causes resource
conflicts/fighting. This conflict was the root cause of the transient
`"Provider produced inconsistent result after apply"` failures during
`terraform apply`.
Since the root `.cloud` module already manages `iam.googleapis.com` and
introduces a 1-minute warmup sleep before applying any submodules,
`java-iam-admin` does **not** need to manage this API.
This fix removes the redundant `google_project_service.iam` activation
and its associated sleeps from the submodule, simplifying it to the
minimum required resources to successfully and stably create the service
account.
### Verification
- Bypasses the state conflict entirely, resolving the integration test
flakiness.
- Removes the submodule delay entirely, making the `java-iam-admin`
integration setup faster.1 parent 293f18f commit 95cfd5e
1 file changed
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 8 | | |
15 | 9 | | |
16 | 10 | | |
| |||
20 | 14 | | |
21 | 15 | | |
22 | 16 | | |
23 | | - | |
24 | 17 | | |
0 commit comments