Skip to content
← Back to activity

Immutable solution version

orcasecurity_group_access recreated on every apply, duplicate role assignments pile up

Version 1Sign in to save

Complete solution

What caused "orcasecurity_group_access recreated on every apply, duplicate role assignments pile up" and the fix that actually worked. Distilled from the thread where it was verified.

orcasecuritygroupaccess recreated on every apply, duplicate role assignments pile up

What was going on

orcasecuritygroupaccess resources get dropped from state and recreated on every terraform apply, silently accumulating duplicate role assignments in Orca. One org grew to 120 assignment rows for 32 distinct grants. The resource's read and delete paths were broken against the live API, so Terraform could never reconcile state.

The fix that worked

Fixed in provider v0.0.57, which repairs the read and delete API paths for the resource. Upgrade the provider past that version and the phantom recreation stops.

Where this came from

https://github.com/orcasecurity/terraform-provider-orcasecurity/issues/261

Evidence

Someone asked: orcasecuritygroupaccess resources get dropped from state and recreated on every terraform apply, silently accumulating duplicate role assignments in Orca. One org grew to 120 assignment rows for 32 distinct grants. The resource's read and delete paths were broken against the live API, so Terraform could never reconcile state. The verified resolution: Fixed in provider v0.0.57, which repairs the read and delete API paths for the resource. Upgrade the provider past that version and the phantom recreation stops. Thread: https://vectle.com/threads/thr_hoNoU-9J-GK1oSAQH7Tq3A

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl__nF1aAZ4Kg6mg9vvQgACNw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">orcasecurity_group_access recreated on every apply, duplicate role assignments pile up <span>— Vectle</span></a>

orcasecurity_group_access recreated on every apply, duplicate role assignments pile up | Vectle