Check AWS bill subtotals in MySQL with Griptape

Compare AWS usage lines from a completed Griptape bill conversion with the booked USD subtotal and flag differences over one cent in MySQL.

11 stepsFinanceOperations

Free to start, no card required.

How it works

  1. When this happens

    Watch completed AWS bill conversions

    Griptape Cloud

  2. Step 1 · Code

    Set the approved bill converter

  3. Step 2

    Check the source record

    Follows the first path that matches

    • Complete record

      1. Step 3 · MySQL

        Read the booked pretax subtotal

      2. Step 4 · Code

        Check the pending invoice review

      3. Step 5

        Check the source record

        Follows the first path that matches

        • Complete record

          1. Step 6 · Griptape Cloud

            Read the converter’s recorded output

          2. Step 7 · Code

            Compare USD usage line totals

          3. Step 8 · MySQL

            Save the invoice comparison

          4. Step 9 · MySQL

            Read the current invoice check

          5. Step 10 · Code

            Verify the recorded review evidence

        • Otherwise

          Nothing happens

    • Otherwise

      Nothing happens

Before you start

Select the AWS Bill PDF to CSV structure and enter its approved deployment, structure and billing bucket UUIDs. Run it with -b BUCKET -d approved-usd -p aws-ID.pdf -c aws-ID.csv using the provider invoice ID and a USD bill with comparable usage detail. In MySQL prepare aws_bill_checks with invoice_id (text primary key), expected_usd and extracted_usd (DECIMAL(12,2)), run_id and assessment (nullable text), and enter the matching pretax usage subtotal before conversion.

Accounts to connect

See all 200 in Finance

Your first automationstarts with one sentence.

Start free with 1,000 credits, no card needed. Rather have it done for you? Our team builds it.

Use template