Connecting to Fastly

How the Fastly Connection works

CloudZero's Fastly connection uses a read-only API token to gather cost and usage data for your organization. After the Fastly connection is created and its data is ingested, you will see your Fastly costs and usage throughout CloudZero, including in the Explorer and Analytics.

Prerequisites for the Fastly Connection

Before you can connect CloudZero to Fastly, you must have the following:

  1. Your Fastly Customer ID.
  2. Ability to create an API token with a Billing role and read-only access to all services in your organization.
  3. Administrative access to your Fastly account.

To connect CloudZero to Fastly, complete the following steps:

  1. Copy the Fastly customer ID.
  2. Create an API token in Fastly.
  3. Create the Fastly connection in CloudZero.

Step 1: Copy the Fastly Customer ID

  1. Log in to Fastly. In the sidebar, navigate to Account > Company settings:

    In Fastly, navigate to Account, then Company settings.
  2. Copy the Customer ID and save it for later. You'll need this value to set up your Fastly connection:

    In Fastly, copy the Customer ID and save it for later.

Step 2: Create an API Token in Fastly

  1. From the sidebar, navigate to Account > Personal tokens:

    In Fastly, navigate to Account, then Personal tokens.
  2. Click Create Token in the top right corner. You may be prompted to reauthenticate.

  3. In the token configuration page, enter a name and choose the following options:

    • Type: Automation token
    • Role: Billing
    • Scope: Read-only access (global:read)
    • Access: All services

    We recommend you set the API token to Never expire.

    The following screenshots show the configured fields in Fastly:

    Example API token configuration in Fastly Example API token configuration in Fastly, continued
  4. Review the configurations and then click Create Token.

  5. Fastly displays your new API Token. Copy the API token now. You will not be able to view it again.

    Copy the Fastly API token before exiting the dialog.

Next, you must create the Fastly connection in CloudZero.

Step 3: Create the CloudZero Fastly Connection

  1. In CloudZero, navigate to Cloud Integrations and select Add Connection.

  2. Select the Fastly tile.

  3. Enter a connection name.

  4. Enter the Fastly Customer ID and API Token you copied earlier into the Customer ID and API Key fields:

    Create and configure the Fastly connection in CloudZero.
  5. Select Continue.

Upon success, you will be redirected to Cloud Integrations, where your newly created Fastly Connection will be listed:

The Billing Connections table in CloudZero shows the newly created Fastly Connection.

View the Fastly Connection in CloudZero

The Fastly Connection details page includes status, connection name, connection ID, and more.

After you've successfully configured the Fastly connection, the connection details page displays the following information:

  • Status
  • Connection Name
  • Connection ID
  • Timestamps for connection creation, ingestion, and more
  • Number of most recently ingested line items

Note that after CloudZero has processed the first ingest of billing and/or usage data, the Status will change from Pending Data to Healthy and the rest of the data listed above will appear.