scalr_role

Resource: scalr_role

Manage the Scalr IAM roles. Create, update and destroy.

Example Usage

resource "scalr_role" "writer" {
  name        = "Writer"
  account_id  = "acc-xxxxxxxxxx"
  description = "Write access to all resources."

  permissions = [
    "*:update",
    "*:delete",
    "*:create"
  ]
}

Schema

Required

  • name (String) Name of the role.
  • permissions (List of String) Array of permission names.

Optional

  • account_id (String) ID of the account.
  • description (String) Verbose description of the role.

Read-Only

  • id (String) The ID of this resource.
  • is_system (Boolean) Boolean indicates if the role can be edited. System roles are maintained by Scalr and cannot be changed.

Import

Import is supported using the following syntax:

terraform import scalr_role.example role-xxxxxxxxxx