security
Check cloud inventory after an environment teardown
Verify resource deletion through the cloud provider before retiring an inventory record. Preserve findings and document anything that survives the teardown.
TrustIvan · · 5 min read
A temporary test environment finished teardown at 12:40 UTC. Its load balancer remains on the security inventory the following morning, and a role associated with the environment still appears in the cloud account. In this fictional review, the two rows require different treatment because one is stale and one describes a live resource.
Review the teardown evidence by resource
| Fixture item | Provider state | Inventory display |
|---|---|---|
| Test load balancer | Gone by stable resource ID | Present in previous snapshot |
| Service role | Exists, teardown skipped role | Present |
| Managed database snapshot | Retained by recovery policy | Present under environment label |
Obtain the environment identifier and teardown execution record, then follow each item to its current provider state. Keep the account and region in view. Temporary stacks can use labels like test more than once, so the review must prove which resource and lifecycle event the inventory row refers to.
Join the records on an identity you can recover
Start with the stable authority for resource identity and capture the account, region, resource type and observation time where they distinguish records. Inventory, configuration and deployment history can arrive at different times. Preserve the source timestamps instead of forcing the most recent row to settle every question. A display name or label is often the starting clue. Attach corroborating evidence before using it to hand off responsibility. For records that fail to join, keep the scope where the gap appeared so an operator can recover the right observation later.
Review the deployment state and authoritative provider inventory under a role that can see the relevant resource types. Check whether ownership changed, whether one resource is intentionally retained, and whether the collection timestamp is newer than the teardown. An empty inventory from an underprivileged role does not prove the resource disappeared.
After confirming deletion, retire the inventory record and keep enough history to interpret old findings. If a resource remains, send the exact identifier to the owning team and note whether it still holds data or serves traffic. A product evaluation can test the inventory refresh and journal entries for a discarded sandbox asset. The Orca Security comparison covers discovery scope.
Retain provider deletion evidence for the load balancer and assign a refresh check. Create a separate task for the still-live role, with its approved owner and intended removal evidence. Keep the database snapshot accounted for under the recovery policy and confirm who reviews its retention deadline. This makes the three decisions visible even when all three share one environment label.
Distinguish deleted from still present
Use provider history for the load balancer, the current authorization record for the role and the recovery register for the retained snapshot. Check which exact resource the teardown receipt names. If the operation reports success while listing only the load balancer, that explains why the still-live role needs another task. The next refresh should update the balancer's inventory state from authoritative deletion evidence.
Set up a comparable review for a fresh preview reusing the old name. Record both stable identifiers before the refresh. If the new balancer's create event appears on the old inventory row, save both observations and route the join defect to the platform inventory owner. Verify whether snapshot retention tags still point to the correct environment after the rename. The data owner can decide its approved retention, while cleanup of the unrelated role remains with the cloud access team.
Exercise an inventory refresh while a new temporary environment creates another balancer with the same display name. The new record should have a different stable identity and its own creation event. If the refresh combines rows by name alone, report an inventory issue before closing the older tracked item.
Close each remaining inventory action
Store the observed state, scope, and chosen owner or escalation beside a timestamped reference for each disputed row. An operator joining later should be able to walk from the inventory view to the underlying cloud or deployment record. Record the expected next refresh and how a later material change will be reviewed. A superseding observation can establish a different state while keeping the earlier evidence valid for its time. Decide who looks at orphan rows when the team that requested the review is unavailable.
Give the teardown owner a check at the next expected refresh. They should review the stale row status, any still-live resources and retained assets whose review dates survive environment teardown. The operating record can then explain an expected retained snapshot alongside truly outstanding cleanup.
Ask a second reviewer to write down the current state from the supplied evidence. Compare their answer with the original decision, paying attention to scope and timing. Capture revisions to the review instructions where a valid observation led to two plausible interpretations.
In an escalation, send the active owner the decision being requested and the source they can consult. Give them one record to confirm and a date for responding. This keeps follow-up anchored to a reviewable observation instead of a broad request to take another look.