Skip to content

Resources are deleted from state due to identity issues  #45

Description

@EladGabay

What happened?

Unfortunately there was (/is) a major identity issue in OCI which makes a lot of requests to end up with 404 errors.
In OCI there's no special error code for not authorized, and it's 404 not authorized or not found. That means, permission issues are handled the same as not found.
This leads to deletion of resources from state, then when no more permission issues, we get "already exists" errors.

Steps to reproduce

Create some resource, remove permissions, exec pulumi couple of times, fix permissions and get already exists error.

Expected Behavior

Reuse the existing resource

Actual Behavior

Resources are deleted from state

Output of pulumi about

No response

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-upstreamThe issue cannot be resolved without action in another repository (may be owned by Pulumi).blockedThe issue cannot be resolved without 3rd party action.kind/bugSome behavior is incorrect or out of spec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions