Okustera Provider
The Okustera provider is used to manage sovereign cloud infrastructure, managed databases, AI workloads, and platform services in Okustera via the Okustera REST API.
Example Usage
Personal Access Token (Recommended for CI/CD or CLI)
terraform {
required_providers {
okustera = {
source = "okustera/okustera"
version = "~> 1.0.0"
}
}
}
provider "okustera" {
endpoint = "https://portal.okustera.com/api/v1"
api_token = var.okustera_api_token
tenant_id = "tenant-finance"
}
In-Cluster Workload Identity (Recommended for Kubernetes GitOps)
provider "okustera" {
endpoint = "https://api.okustera.com/api/v1"
workload_identity = {
enabled = true
token_file = "/var/run/secrets/okustera/token"
role_arn = "arn:okustera:iam::tenant-finance:role/TerraformDeployer"
}
}
User Credentials with Optional 2FA
provider "okustera" {
endpoint = "https://portal.okustera.com/api/v1"
username = var.okustera_username
password = var.okustera_password
totp_code = var.okustera_2fa_code # Optional: if TOTP 2FA is active
}
Supported Resources & Data Sources
Resources
| Resource | Category | Description |
|---|---|---|
okustera_tenant | Identity & Access | Provisions isolated tenant workspaces and project boundaries |
okustera_user | Identity & Access | Manages user accounts and credentials |
okustera_role_assignment | Identity & Access | Binds roles to users within tenants |
okustera_iam_role | Security & IAM | Declares fine-grained IAM endpoint policies |
okustera_pod_identity_binding | Security & IAM | Binds Kubernetes ServiceAccounts to Okustera IAM roles |
okustera_secret | Secrets & KMS | Encrypted vault storage for certificates, passphrases, and keys |
okustera_database_postgresql | Managed DBaaS | High-availability PostgreSQL 16 clusters with automated backups and PITR |
okustera_database_mysql | Managed DBaaS | High-availability MySQL 8.0 clusters with synchronous replication |
okustera_database_mongodb | Managed DBaaS | MongoDB-compatible document database clusters (alias for DocumentDB) |
okustera_database_valkey | Managed DBaaS | In-memory Valkey clusters with automated Sentinel high availability |
okustera_database_qdrant | Managed DBaaS | Vector database for embeddings, RAG, and similarity search |
okustera_database_clickhouse | Managed DBaaS | Distributed columnar analytical OLAP database clusters |
okustera_database_documentdb | Managed DBaaS | MongoDB 7.0+ wire-compatible open-source DocumentDB clusters |
okustera_rabbitmq_cluster | Messaging & Streaming | High-availability RabbitMQ message broker clusters |
okustera_kafka_cluster | Messaging & Streaming | ZooKeeper-less Apache Kafka 3.8 KRaft event streaming clusters |
okustera_artifactory_repository | Artifact Registry | Multi-format artifact registry (Docker, Helm, npm, PyPI, Maven) |
okustera_ai_rag_collection | AI & Machine Learning | Managed RAG knowledge collections indexed with vector search |
okustera_ai_agent_sandbox | AI & Machine Learning | Hardware-isolated Linux Agent Sandboxes with persistent /workspace, skill mounts, and zero-trust security controls |
okustera_ai_ray_deployment | AI & Machine Learning | Managed LLM inference deployments with dynamic Multi-LoRA, fractional GPU slicing, and scale-to-zero |
okustera_ai_batch_job | AI & Machine Learning | High-throughput batch inference jobs for large Mixture-of-Experts (MoE) models |
okustera_ai_foundry_model | AI & Machine Learning | SafeTensors-validated Hugging Face model mirroring into shared Model Foundry storage |
okustera_ai_oci_artifact | AI & Machine Learning | Packages LoRA adapters and custom model weights as OCI ModelKit artifacts |
okustera_ai_mcp_token | AI & Machine Learning | Short-lived (≤ 15m) audience-scoped MCP tokens backed by Okustera KMS |
okustera_s3_bucket | Object Storage | S3-compatible object storage buckets with quotas, KMS encryption, and versioning |
okustera_s3_credentials | Object Storage | Scoped S3 access keys with automated KMS secret escrow |
okustera_storage_volume | Block Storage | Persistent replicated NVMe and standard block storage volumes |
okustera_storage_volume_attachment | Block Storage | Attaches persistent block storage volumes to compute instances |
okustera_storage_snapshot | Block Storage | Point-in-time copy-on-write volume snapshots |
okustera_vpc | Networking | Multi-tier Tenant VPC with automated IPAM tier partitioning |
okustera_security_group | Networking | Virtual firewall security group containers |
okustera_security_group_rule | Networking | Ingress and egress firewall packet filtering rules |
okustera_floating_ip | Networking | Routable public IPv4 floating IPs |
okustera_floating_ip_associate | Networking | Binds public floating IPs to virtual network ports |
okustera_compute_instance | Compute | Virtual machines with cloud-init bootstrap |
okustera_kubernetes_cluster_template | Managed Kubernetes | Reusable blueprints for managed Kubernetes clusters |
okustera_kubernetes_cluster | Managed Kubernetes | Production Kubernetes clusters with automated kubeconfig |
okustera_loadbalancer | Load Balancing | High-availability managed load balancers with VPC placement |
okustera_loadbalancer_listener | Load Balancing | Frontend listeners for HTTP, HTTPS, TCP, UDP, and TLS offload |
okustera_loadbalancer_pool | Load Balancing | Backend pools with round-robin, least-connections, or source-IP |
okustera_loadbalancer_member | Load Balancing | Target compute/container IPs and traffic weights |
okustera_dns_zone | Managed DNS | Authoritative DNS zones with high-availability nameservers |
okustera_dns_recordset | Managed DNS | Authoritative DNS recordsets (A, AAAA, CNAME, MX, TXT, SRV, PTR, NS, CAA) |
okustera_apisix_route | API Gateway | Managed ingress routes with SSL/TLS termination, WAF, rate limiting, and CORS |
okustera_gateway_certificate | API Gateway | Automated Let's Encrypt and private CA TLS certificates |
okustera_function | Serverless FaaS | Event-driven serverless functions with hardware sandbox isolation |
okustera_layer | Serverless FaaS | Shared dependency layers with multi-tenant RBAC |
okustera_layer_version | Serverless FaaS | Immutable snapshot versions of serverless shared layers |
okustera_layer_permission | Serverless FaaS | Cross-tenant access permissions for shared layers |
okustera_airflow_workspace | Managed Workflows | Dedicated Apache Airflow workspaces with isolated compute, managed metadata DB, and S3 DAG sync |
okustera_workflow_dag | Managed Workflows | Managed Apache Airflow DAGs with S3 synchronization |
okustera_billing_budget | FinOps & Billing | Monthly budget limits, alert thresholds, and quota freezes |
Data Sources
| Data Source | Category | Description |
|---|---|---|
okustera_ai_models | AI & Machine Learning | Curated Model Foundry blueprints, AI serving status, and fractional GPU profiles |
okustera_ai_sandbox_catalog | AI & Machine Learning | Available Agent Sandbox toolchains, Skill Registry packages, and sandbox security policies |
okustera_pricing_rates | FinOps & Billing | Active unit pricing across compute, storage, databases, and serverless |
okustera_billing_overview | FinOps & Billing | Read-only tenant month-to-date spend, forecast, and trends |
okustera_observability_overview | Observability | Cluster CPU/RAM utilization, workload health, and network bandwidth |
okustera_workflow_status | Managed Workflows | Operational health, scheduler state, and S3 status of managed Airflow workspaces |
okustera_workflow_dag | Managed Workflows | Metadata, execution schedule, tags, and run status of an Airflow DAG |
okustera_layer | Serverless FaaS | Lookup shared dependency layer details and latest version |
okustera_layer_version | Serverless FaaS | Details of a specific immutable layer snapshot version |
okustera_database_cluster | Managed DBaaS | Look up operational endpoints for running database clusters |
okustera_port | Networking | Discover virtual network interface ports by port UUID or VM device ID |
okustera_compute_flavor | Compute | Sizing specifications (vCPU, RAM, disk) for VM flavors |
okustera_image | Compute Images | Lookup available VM and container OS images |
okustera_kubernetes_cluster_config | Managed Kubernetes | Fetch live signed kubeconfig for Terraform Helm/Kubernetes providers |
Schema
Optional
endpoint(String) The base URL for the Okustera API (e.g.,https://portal.okustera.com/api/v1orhttps://api.okustera.com/api/v1). May also be set via theOKUSTERA_ENDPOINTenvironment variable.api_token(String, Sensitive) A Personal Access Token (PAT) for Okustera. May also be set via theOKUSTERA_API_TOKENenvironment variable.tenant_id(String) The ID or name of the tenant project to scope operations under. May also be set via theOKUSTERA_TENANT_IDenvironment variable.username(String) Username for Okustera authentication. May also be set viaOKUSTERA_USERNAME.password(String, Sensitive) Password for Okustera authentication. May also be set viaOKUSTERA_PASSWORD.totp_code(String, Sensitive) 6-digit TOTP two-factor authentication code. May also be set viaOKUSTERA_TOTP_CODE.insecure_skip_verify(Boolean) Set totrueto skip TLS certificate verification. Useful for private staging environments with self-signed certificates. Defaults tofalse. May also be set viaOKUSTERA_INSECURE_SKIP_VERIFY.host_header(String) Host header override for API Gateway routing (defaults toportal.okustera.com). May also be set viaOKUSTERA_HOST_HEADER.workload_identity(Block, Optional) Configuration for Kubernetes Pod Workload Identity (see below for nested schema).
Nested Schema for workload_identity
enabled(Boolean) Set totrueto activate Workload Identity token discovery.token_file(String) Path to the projected Kubernetes ServiceAccount token file (defaults to/var/run/secrets/okustera/tokenorOKUSTERA_TOKEN_FILE).role_arn(String) The ARN of the Okustera IAM role to assume (e.g.,arn:okustera:iam::tenant-1002:role/TerraformDeployer).
Environment Variables
| Variable | Provider Attribute | Description |
|---|---|---|
OKUSTERA_ENDPOINT | endpoint | Base URL of the Okustera Cloud API |
OKUSTERA_API_TOKEN | api_token | Personal Access Token |
OKUSTERA_TENANT_ID | tenant_id | Project or Tenant ID |
OKUSTERA_HOST_HEADER | host_header | Host header override for API Gateway routing |
OKUSTERA_USERNAME | username | User account email or ID |
OKUSTERA_PASSWORD | password | User account password |
OKUSTERA_TOTP_CODE | totp_code | Two-factor authentication code |
OKUSTERA_TOKEN_FILE | workload_identity.token_file | Path to projected Kubernetes ServiceAccount JWT |
OKUSTERA_INSECURE_SKIP_VERIFY | insecure_skip_verify | Skip TLS certificate verification |