Skip to content
Cloudflare Docs

Troubleshoot compute accounts

Cloudflare CASB detects when compute accounts are unhealthy or outdated. Common compute account issues include security or functionality updates and API token misconfigurations.

Identify unhealthy compute accounts

To identify unhealthy compute accounts:

  1. In Zero Trust, go to CASB > Integrations.
  2. Choose the integration you created for cloud scanning.
  3. Select Manage compute accounts.

CASB will display the status of each compute account next to its name. If a compute account is broken or outdated, CASB will set its status to Unhealthy. If the status is Healthy, no action is required.

Repair an unhealthy compute account

When CASB marks a compute account as Unhealthy, CASB will not use new scan configuration changes and new scan results will not appear in the dashboard.

To repair a compute account marked as Unhealthy, first upgrade the compute account. If the compute account is still unhealthy, roll your API token.

Upgrade a compute account

Upgrading a compute account applies the latest software features, bug fixes, and infrastructure changes to a cloud compute account. You should run upgrades periodically to keep the compute account software up to date or when recommended by Cloudflare to address an issue. CASB deploys compute account upgrades through Terraform updates.

To upgrade a compute account:

  1. In Zero Trust, go to CASB > Integrations.
  2. Choose the integration you created for cloud scanning.
  3. Select Open connection instructions.
  4. Follow the instructions provided to validate your local Terraform and CLI configuration.
  5. Under Step 2: Deploy Terraform Configuration, copy the template to your local configuration. This template will be the most up to date version of the integration's Terraform configuration.
  6. In a local terminal, update the cached version of the CDS Terraform modules:
    Terminal window
    terraform init --upgrade
  7. Apply the upgraded Terraform configuration to your compute account:
    Terminal window
    terraform apply

Roll API tokens

You may need to roll the Cloudflare API token used for your compute account if a security or operational issue appears, your API token is compromised, or your API token is removed from your compute account.

If your token is lost or compromised, you can either create a new token or roll your token to generate a new secret. Rolling your API token into a new one will invalidate the previous token, but the access and permissions will be the same as the previous API token.

To roll your API token:

  1. Log in to the Cloudflare dashboard and go to My Profile > API Tokens.
  2. Next to the API token you want to roll, select the three dot iconRoll.
  3. Select Confirm to generate a new API token.
  1. Copy your API token.

Once you roll your API token in Cloudflare, you can update the API token value in your secrets manager for Amazon Web Services (AWS) or Google Cloud Platform (GCP).

Common token issues

cloudflare-cds-secrets does not exist in the compute account's secrets manager

To recreate the secret in your compute account:

  1. Validate that you selected the correct region.
  2. Upgrade the compute account to recreate the secret.
  3. Update the secret value in your compute account.

I no longer have access to the Cloudflare API token I created

Roll your Cloudflare API token and add it to your compute account. If the status of the compute account is set to Healthy, the issue has been solved.