keenauth_role

keenauth_role 리소스는 환경의 역할과 전체 권한 집합을 관리합니다. 하나의 조직에 속한 역할은 다른 리소스인 keenauth_organization_role입니다. keenauth_role 데이터 소스는 id 또는 key로 역할을 읽습니다.

resource "keenauth_permission" "invoices_read" {
  api_id = "api_01j9zq3v8c5m2x7k4t6r1n0b3d"
  value  = "invoices:read"
}

resource "keenauth_role" "billing" {
  key         = "billing"
  name        = "Billing"
  description = "Invoices and payment methods."

  permission_ids = [keenauth_permission.invoices_read.id]
}

data "keenauth_role" "billing" {
  key = "billing"
}

수명 주기

가져오기

키 또는 ID로 가져옵니다.

tofu import keenauth_role.billing billing
tofu import keenauth_role.billing rol_01j9zq3v8c5m2x7k4t6r1n0b3d