Skip to content

Latest commit

 

History

History
109 lines (83 loc) · 3.35 KB

File metadata and controls

109 lines (83 loc) · 3.35 KB
page_title subcategory description
nuodbaas_project Resource - nuodbaas
Resource for managing NuoDB projects created using the DBaaS Control Plane

nuodbaas_project (Resource)

Resource for managing NuoDB projects created using the DBaaS Control Plane

Example Usage

# A project with minimal configuration
resource "nuodbaas_project" "basic" {
  organization = "org"
  name         = "basic"
  sla          = "dev"
  tier         = "n0.nano"
}

# A project with explicit configuration for various attributes
resource "nuodbaas_project" "proj" {
  organization = "org"
  name         = "proj"
  sla          = "prod"
  tier         = "n0.nano"
  labels = {
    color  = "blue"
    flavor = "mild"
  }
  properties = {
    product_version = "5.1"
    tier_parameters = {
      zone  = "us-east"
      group = "dev"
    }
  }
}

Schema

Required

  • name (String) The name of the project
  • organization (String) The organization that the project belongs to
  • sla (String) The SLA for the project. Cannot be updated once the project is created.
  • tier (String) The service tier for the project

Optional

Read-Only

Nested Schema for maintenance

Optional:

  • is_disabled (Boolean) Whether the project or database should be shutdown

Nested Schema for properties

Optional:

  • product_version (String) The version/tag of the NuoDB image to use. For available tags, see https://hub.docker.com/r/nuodb/nuodb/tags. If omitted, the project version will be resolved based on the SLA and cluster configuration.
  • tier_parameters (Map of String) Opaque parameters supplied to project service tier.

Nested Schema for status

Read-Only:

  • ca_pem (String) The PEM-encoded certificate for SQL clients to verify database servers within the project
  • message (String) Message summarizing the state of the project
  • ready (Boolean) Whether the project is ready
  • shutdown (Boolean) Whether the project and all of its databases have shutdown
  • state (String) The state of the project:
    • Available - The project is available
    • Creating - The project is being created and not yet available
    • Modifying - The project is being modified
    • Stopping - Shutdown is in progress for this project
    • Stopped - The project and its databases have been stopped
    • Expired - The project and its databases have expired
    • Failed - The project has failed to achieve a usable state
    • Deleting - The project has been marked for deletion, which is in progress
    • RotatingCertificates - TLS certificates rotation is in progress for this domain

Import

Import is supported using the following syntax:

# An existing project can be imported by specifying the organization
# and project name, separated by "/"
terraform import nuodbaas_project.proj org/proj