Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.81 KB

index.md

File metadata and controls

37 lines (29 loc) · 1.81 KB
page_title opalstack Provider
description Manages resources of an Opalstack https://www.opalstack.com hosting account through its REST API.

opalstack Provider

Manages resources of an Opalstack hosting account through its REST API.

Example Usage

terraform {
  required_providers {
    opalstack = {
      source = "vlazic/opalstack"
    }
  }
}

# The token is read from the OPALSTACK_TOKEN environment variable.
provider "opalstack" {}

Schema

Optional

  • base_url (String) API base URL. Defaults to https://my.opalstack.com/api/v1.
  • read_only (Boolean) When true, the provider sends nothing but reads: every create, update and delete fails before a request is made. Planning, refreshing and importing still work. Meant for adopting an existing account, until its plan shows no changes.
  • request_timeout (String) Limit for a single API request, as a duration such as 45s. Defaults to 30s. Waiting for an object to become ready is governed by each resource's timeouts instead.
  • safety_osuser_id (String) Used with safety_prefix: the id of the one shell user that apps may be created under although its name lacks the prefix. The user itself is still never changed or deleted.
  • safety_prefix (String) When set, the provider refuses to create, update or delete any object whose name does not start with this prefix, or that refers to one: the domains and apps of a site and the shell user of an app are checked too. A DNS record is judged by the name of its domain. Meant for development and testing against an account that also holds real objects.
  • token (String, Sensitive) API token. Defaults to the OPALSTACK_TOKEN environment variable.