2 examples
Orphaned resource
Allocated resource not tracked or released, causing leaks.
[ FAQ1 ]
What is an orphaned resource?
An orphaned resource is an infrastructure component—such as a cloud server, database, storage bucket, or network resource—that exists independently without proper association or management by the provisioning or infrastructure-as-code tools originally responsible for creating it. Orphaned resources commonly occur due to incomplete cleanups, failed infrastructure updates, or errors in tools like Terraform. Left unaddressed, orphaned resources can lead to unnecessary costs, resource waste, and management difficulties in cloud environments or automated provisioning workflows.
[ FAQ2 ]
How to fix orphaned resources
To fix orphaned resources, first use automated scanning or detection tools to identify unmanaged or orphaned infrastructure within your environment. Clearly assess each identified resource to determine whether it should be re-associated, managed, or safely deleted. Update infrastructure-as-code tools like Terraform to properly track or manage existing resources, ensuring accurate state files and provisioning workflows. Regularly audit and monitor infrastructure environments, proactively detecting and cleaning up orphaned resources, minimizing cost, security risks, and complexity.
Want to avoid this bug in your codebase? Try Greptile.
Avoid this bug!