Esta página vem da documentação do próprio provider, em inglês — a mesma do Terraform Registry.

Data Source: yet_iam_api_keys

Every API key the company's people hold — who, since when, last used when. Only each key's first characters are kept.

Note: Keys are made by each person, in Yet's Preferences — never with another key — and revoked there, or by an admin in Settings → IAM.

Example Usage

data "yet_iam_api_keys" "acme" {}

# Keys never used — candidates to revoke, in Settings → IAM.
output "unused_keys" {
  value = [for k in data.yet_iam_api_keys.acme.keys : "${k.email}: ${k.name}" if k.last_used_at == ""]
}

Schema

Read-Only

Nested Schema for keys

Read-Only:

  • created_at (String) When it was made (RFC 3339).
  • email (String) Its person.
  • id (String) The key's id.
  • last_used_at (String) When it was last used (RFC 3339); empty if never.
  • name (String) What it is for.
  • prefix (String) Its first characters: yet_acme_6bffe6.