Skip to content

kupe_api_key

Manages a Kupe Cloud API key for machine-to-machine authentication.

resource "kupe_api_key" "cicd" {
display_name = "CI/CD Pipeline"
role = "admin"
expires_at = "2027-01-01T00:00:00Z"
}
  • display_name (String) Human-readable name for the API key (immutable).
  • role (String) API key role. Valid values are admin and readonly. Immutable after creation.
  • expires_at (String) Expiration time in RFC3339 format. Optional and immutable after creation.
  • created_at (String) Timestamp when the key was created.
  • created_by (String) Email of the user who created the key.
  • id (String) API key ID.
  • key (String, Sensitive) The raw API key. Only available on creation and stored in Terraform state as sensitive. Sensitive redacts UI output but does not prevent the value from being written to state.

Import is supported using the following syntax:

The terraform import command can be used, for example:

Terminal window
terraform import kupe_api_key.cicd ak-abc123