メインコンテンツへスキップ

Tutorial: Your first recipe

This tutorial walks you through creating a Cost-focused recipe for AWS EBS volumes by duplicating an existing recipe, adjusting the query, testing results, and publishing.

For concepts such as pillars, draft versus published, and when to duplicate, see Understanding recipes.

Goal and objectives

  • Goal: Create and publish a recipe that finds EBS volumes matching your cost criteria and can surface them as proprietary Insights.

  • Objectives: In this tutorial, you'll learn how to:

    • Duplicate an existing recipe instead of starting from a blank canvas.

    • Set pillars, severity, and Group results by fields.

    • Build and test a query with rules and groups.

    • Publish the recipe and open related Insights.

Prerequisites

Before you start:

Start building

  1. Sign in to the DoiT console, select Automation and operations from the top navigation mega menu, and then select Composer.

  2. On the Composer dashboard, open a recipe that already targets EBS volumes or a similar idle/unused resource check (for example, an idle EC2 or unattached volume-style recipe if one is available).

    Composer dashboard.

  3. In the Recipe builder, select the kebab menu () in the top bar, and then select Duplicate recipe.

    Composer - recipe builder: kebab menu.

You now have an editable copy. The remaining steps customize that copy into your recipe.

Step 1: Configure details

  1. In the Recipe builder side panel, select the Details tab.

  2. Update the Title and optional Description so the recipe is easy to recognize on the dashboard. We recommend a resource-first title that states the condition (for example, EBS volumes with no attached instance) rather than an action. See Create and edit recipes.

  3. Set Severity (for example, Medium or High).

  4. In Pillars, select Cost. You can select additional pillars if the check also applies to operations or another category. See Pillars.

  5. If Cost is selected, choose a Cost function such as Resource deletion when the intended remediation is to remove unused volumes, so savings are classified correctly.

  6. (Optional) Add Compliance standards if you want the related insights tagged for compliance filtering.

  7. In Group results by fields, select the canvas resource that should be the issued resource for the insight (typically the EBS volume resource on the canvas). This controls which resource type the insight is raised against when the query matches.

    Composer - recipe builder: add details.

Step 2: Review resources on the canvas

  1. Confirm the canvas includes the AWS EBS volume resource (or drag EBS Volume from the Resources panel if needed).

    Composer - recipe builder: add resource.

  2. (Optional) Select the Add icon (+) on the resource card to add a related resource when your query depends on a relation (for example, attachment to an instance).

    Composer - recipe builder: add related resource.

ヒント

Select Only show my resources in the Resources panel to limit the list to providers and resource types connected to your organization.

Step 3: Build the query

  1. Select the Query tab.

    Composer - recipe builder: Query.

  2. Select Add rule to add a single condition. To combine several rules, select Add group, and then add rules inside the group.

  3. In the filters dialog, search for the property, tag, metric, or other field you need. You can narrow the list by Properties, Events, Cost, Metrics, Tags, Group by, IAM, or All.

    Composer - recipe builder: Add rule.

  4. Select Done, and then adjust operators and values on the rule as needed.

    Composer - recipe builder: Add rule.

  5. Select Run query to test the recipe against your scanned accounts.

Step 4: Review results

  1. Inspect the recipe results. Switch to table view if you prefer a tabular list.

    Composer - recipe builder: table view.

  2. (Optional) Select a resource in the table view to open resource details and verify that the match is expected.

Step 5: Add remediation details (optional)

  1. Select the Remediate tab and fill in any fields that help operators resolve findings (steps, impact, complexity, references, fix time).

    Composer - recipe builder: Add remediate tab fields

When the recipe is published, these fields appear on the related insight details page. See Add remediation details.

Step 6: Publish the recipe

ヒント

Before you publish, search the Composer dashboard for a recipe that already targets the same resource and condition. Prefer customizing that recipe over publishing a near-duplicate Cost check, which can inflate savings totals.

  1. On the Details tab, select Check and run continuously if you want Composer to keep evaluating matching resources after publish.

  2. Select Save and publish.

  3. Select Close to return to the Composer dashboard, or select View all insights to open the Insights dashboard.

Troubleshooting

  • No results after Run query: Confirm account coverage shows successful scans, that Composer is enabled on the accounts you expect, and that query filters are not too narrow. Also confirm Group results by fields points at the resource you intend to issue insights for.

  • Cannot save the recipe: You may be viewing a recipe your organization does not own. Duplicate the recipe first, then save the copy.

  • Unexpected matches: Review relations on the canvas and each rule's operators. Use resource details from the results table to inspect properties, tags, and related resources.

Next steps