Skip to content

[BUG]: Swallow 404 Not Found when deleting environments #3131

@acouvreur

Description

@acouvreur

Expected Behavior

A lot of resources should be considered deleted when they cannot be found.

When an environment no longer exist and terraform tries to delete it, it should swallow 404 errors and go on.

Actual Behavior

Applying when an environment that must be deleted no longer exist fails.

Terraform Version

6.9.1

Affected Resource(s)

  • github_repository_environment

Terraform Configuration Files

Steps to Reproduce

Create an environment through TF
Delete the environment or the repository externally (Bad, I know :))
The apply fails although it is in the desired state

Debug Output

Panic Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type: BugSomething isn't working as documented

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions