Terraform provider¶
The rso provider manages the platform's resources as code, and reads quotas, OS templates and
cost estimates. The reference lists every resource and data source of the
provider version these pages were generated from.
Not released yet
The provider is not published to the Terraform or OpenTofu registries yet, so
terraform init cannot download it from the source address shown below. These pages describe
the provider as it will be released. Until then, use the command-line client,
the Go SDK or the API.
Setup¶
terraform {
required_providers {
rso = {
source = "theorigamicorporation/rso"
}
}
}
# Credentials come from the environment:
# RSO_TENANT, RSO_SERVICE_ACCOUNT_NAME, RSO_SERVICE_ACCOUNT_SECRET
provider "rso" {}
Create a service account and export its credentials:
export RSO_TENANT="<tenant-id>"
export RSO_SERVICE_ACCOUNT_NAME="<name>"
export RSO_SERVICE_ACCOUNT_SECRET="<token>"
terraform init && terraform plan
An apply that would exceed a quota fails with the platform's
QUOTA_EXCEEDED message and creates nothing.
Arguments and attributes of every resource and data source are in the reference, generated from the provider.
See the examples. Every example on that page is applied and destroyed by the provider's test suite on each change.