Skip to main content

discover

Function discover 

Source
pub fn discover(session_id: &str) -> Result<Vec<TaggedResource>>
Expand description

Query Resource Groups Tagging API for every resource bearing tryaudex-session=<session_id>. Returns the raw list (may be empty).

R6-M8: the tagging API is regional. A single call only returns resources in the AWS CLI’s default region, so sessions that created resources in multiple regions leak everything outside the default. Callers can set AUDEX_CLEANUP_REGIONS=us-east-1,eu-west-1,… to scan an explicit list; the results are merged and deduplicated by ARN. Without the env var, we fall back to the ambient default region for backwards compatibility.