diff --git a/data-collection/deploy/module-cost-anomaly.yaml b/data-collection/deploy/module-cost-anomaly.yaml index 3e9a5c1..2c8f035 100644 --- a/data-collection/deploy/module-cost-anomaly.yaml +++ b/data-collection/deploy/module-cost-anomaly.yaml @@ -206,11 +206,7 @@ Resources: 'TotalImpact': get_value_by_path(record, 'Impact/TotalImpact'), 'TotalImpactpercentage': float(get_value_by_path(record, 'Impact/TotalImpactPercentage', 0.0)), 'MonitorArn': get_value_by_path(record, 'MonitorArn'), - 'LinkedAccount': get_value_by_path(record, 'RootCauses/0/LinkedAccount'), - 'LinkedAccountName': get_value_by_path(record, 'RootCauses/0/LinkedAccountName'), - 'Region': get_value_by_path(record, 'RootCauses/0/Region'), - 'Service': get_value_by_path(record, 'RootCauses/0/Service'), - 'UsageType': get_value_by_path(record, 'RootCauses/0/UsageType') + 'RootCauses': get_value_by_path(record, 'RootCauses', []) # Store full array of root causes } logger.debug("Processing record complete") return result