entrepot_service_account
A service account: a non-human principal for automation. It authenticates with entrepot_service_account_token tokens and is granted access with entrepot_role_binding (subject_type = "user", subject = entrepot_service_account.<x>.username). Deleting a service account revokes its tokens.
Example Usage
Section titled “Example Usage”resource "entrepot_service_account" "ci" { name = "ci" description = "CI publisher"}
# Use the username ("sa:ci") as a role binding subject.output "ci_username" { value = entrepot_service_account.ci.username}Schema
Section titled “Schema”Required
Section titled “Required”name(String) Service account name (without thesa:prefix). Changing it forces a new service account.
Optional
Section titled “Optional”description(String) Free-form description (the account’s display name). The API cannot update service accounts, so changing it forces a new service account (and new tokens).
Read-Only
Section titled “Read-Only”id(String) Same asname.user_id(String) Server-assigned user ID.username(String) Username to use as a role binding subject:sa:<name>.
Import
Section titled “Import”The terraform import command can be used, for example:
# Service accounts are imported by name (with or without the "sa:" prefix).terraform import entrepot_service_account.ci ciResource documentation generated from the provider’s schema (docs/resources/service_account.md in terraform-provider-entrepot).