juju_jaas_access_role (Resource)

A resource that represents access to a role when using JAAS.

Example Usage

resource "juju_jaas_access_role" "development" {
  role_id          = juju_jaas_role.target-role.uuid
  access           = "assignee"
  users            = ["[email protected]"]
  roles            = [juju_jaas_role.development.uuid]
  service_accounts = ["Client-ID-1", "Client-ID-2"]
}

Schema

Required

Optional

  • groups (Set of String) List of groups to grant access. A valid group ID is the group’s UUID.

  • service_accounts (Set of String) List of service accounts to grant access. A valid service account is the service account’s name.

  • users (Set of String) List of users to grant access. A valid user is the user’s name or email.

Read-Only

  • id (String) The ID of this resource.

Import

Import is supported using the following syntax:

# JAAS role access can be imported using the role UUID and access level
$ terraform import juju_jaas_access_role.development UUID:assignee