Skip to main content

Example FinOps

// Checking for EBS volumes that use older, cost-inefficient GP2 type
if (node.resourceType === "AWS/Volume" && node.VolumeType === "gp2") {
return { type: 'warning', message: 'Consider migrating to GP3 for better cost efficiency.', resourceId: node._id };
}

// Detecting unattached EBS volumes
if (node.resourceType === "AWS/Volume" && !node.AttachmentState) {
return { type: 'warning', message: 'Unattached EBS Volume detected. Consider deleting if unused.', resourceId: node._id };
}