ContinueOps

    continueops

    by: ContinueOps·Resilience & Disaster Recovery

    Published
    Published 4 days ago
    Version
    0.4.0
    Source
    app.terraform.io/continueops/continueops
    Documentation

    continueops_rbac_settings (Resource)

    The tenant's runbook access settings. There is one per tenant, so declare this resource once: creating it adopts the tenant's settings (whatever they were), and its id is the tenant id.

    With runbook_default_access = "members" (the platform default) every member keeps full access to runbooks and continueops_rbac_bindings have no effect. With "bindings", people only get what bindings grant them; tenant owners and admins keep full access. Create the bindings before switching to "bindings" (reference them in depends_on), or people lose access in between.

    Destroy resets the settings to the default, members.

    Example Usage

    # Runbook access now comes from bindings. Create them first, so nobody loses
    # access in between.
    resource "continueops_rbac_settings" "this" {
      runbook_default_access = "bindings"
    
      depends_on = [
        continueops_rbac_binding.payments_owners,
        continueops_rbac_binding.everyone_runs_managed,
      ]
    }

    Schema

    Required

    • runbook_default_access (String) members (everyone has full runbook access) or bindings (access comes from bindings).

    Optional

    Read-Only

    • id (String) The tenant id (UUID).
    • updated_at (String) When the settings last changed (RFC 3339, UTC).

    Nested Schema for timeouts

    Optional:

    • create (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    • delete (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    • read (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    • update (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    Import is supported using the following syntax:

    In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:

    import {
      to = continueops_rbac_settings.this
      id = "00000000-0000-4000-8000-000000000000" # the tenant id (data.continueops_tenant.current.id)
    }

    The terraform import command can be used, for example:

    # The settings' id is the tenant id.
    terraform import continueops_rbac_settings.this 00000000-0000-4000-8000-000000000000