kupe_api_key
Manages a Kupe Cloud API key for machine-to-machine authentication.
Example Usage
Section titled “Example Usage”resource "kupe_api_key" "cicd" { display_name = "CI/CD Pipeline" role = "admin" expires_at = "2027-01-01T00:00:00Z"}Schema
Section titled “Schema”Required
Section titled “Required”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.
Optional
Section titled “Optional”expires_at(String) Expiration time in RFC3339 format. Optional and immutable after creation.
Read-Only
Section titled “Read-Only”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
Section titled “Import”Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import kupe_api_key.cicd ak-abc123