Terraform Error: 409 Maximum Log Streams

Overview

This article provides a few possible resolutions to the following error when using Log Streams and Terraform:

Error: 409 Conflict: You have reached the maximum number of log streams for your account.

Applies To

  • Terraform
  • Log Streams

Cause

The terraform file contains incorrect information regarding the Custom Log Stream, and the .tfstate file needs to be updated with the correct information.

Solution

There are two possible solutions:

  • Import the Log Stream
  • Change the resource file and/or .tfstate file with the correct information
    • Importing the resource:
      • terraform import auth0_email_provider.my_email_provider "{the_id_of_the_email_provider}"
      • Change the resource file by adding the same information in the email provider’s dashboard.

See Resource: auth0_email_provider | Terraform for more information.