Skip to content
Terraform provider 2.0.0

Terraform provider 2.0.0

The 2.0.0 release of the Clever Cloud Terraform provider is available. It brings a breaking change: clevercloud_static now manages the lightweight Static runtime, without Apache. Applications running Static with Apache move to the new clevercloud_static_apache resource.

If you manage a Static with Apache application with clevercloud_static, rename the resource and add a moved block, so Terraform updates the state without recreating the application. Moving state between resource types requires Terraform 1.8 or later:

moved {
  from = clevercloud_static.website
  to   = clevercloud_static_apache.website
}

resource "clevercloud_static_apache" "website" {
  # Keep the configuration you had before
}

terraform plan then shows the move with no other change, and terraform apply saves it to the state. Without this block, the next plan stops with a Resource variant mismatch error before any change applies. This release also fixes the PostgreSQL state upgrade and adds debug logs for environment variable changes.

Last updated on