Skip to main content

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​

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"
}
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​

ResourceCategoryDescription
okustera_tenantIdentity & AccessProvisions isolated tenant workspaces and project boundaries
okustera_userIdentity & AccessManages user accounts and credentials
okustera_role_assignmentIdentity & AccessBinds roles to users within tenants
okustera_iam_roleSecurity & IAMDeclares fine-grained IAM endpoint policies
okustera_pod_identity_bindingSecurity & IAMBinds Kubernetes ServiceAccounts to Okustera IAM roles
okustera_secretSecrets & KMSEncrypted vault storage for certificates, passphrases, and keys
okustera_database_postgresqlManaged DBaaSHigh-availability PostgreSQL 16 clusters with automated backups and PITR
okustera_database_mysqlManaged DBaaSHigh-availability MySQL 8.0 clusters with synchronous replication
okustera_database_mongodbManaged DBaaSMongoDB-compatible document database clusters (alias for DocumentDB)
okustera_database_valkeyManaged DBaaSIn-memory Valkey clusters with automated Sentinel high availability
okustera_database_qdrantManaged DBaaSVector database for embeddings, RAG, and similarity search
okustera_database_clickhouseManaged DBaaSDistributed columnar analytical OLAP database clusters
okustera_database_documentdbManaged DBaaSMongoDB 7.0+ wire-compatible open-source DocumentDB clusters
okustera_rabbitmq_clusterMessaging & StreamingHigh-availability RabbitMQ message broker clusters
okustera_kafka_clusterMessaging & StreamingZooKeeper-less Apache Kafka 3.8 KRaft event streaming clusters
okustera_artifactory_repositoryArtifact RegistryMulti-format artifact registry (Docker, Helm, npm, PyPI, Maven)
okustera_ai_rag_collectionAI & Machine LearningManaged RAG knowledge collections indexed with vector search
okustera_ai_agent_sandboxAI & Machine LearningHardware-isolated Linux Agent Sandboxes with persistent /workspace, skill mounts, and zero-trust security controls
okustera_ai_ray_deploymentAI & Machine LearningManaged LLM inference deployments with dynamic Multi-LoRA, fractional GPU slicing, and scale-to-zero
okustera_ai_batch_jobAI & Machine LearningHigh-throughput batch inference jobs for large Mixture-of-Experts (MoE) models
okustera_ai_foundry_modelAI & Machine LearningSafeTensors-validated Hugging Face model mirroring into shared Model Foundry storage
okustera_ai_oci_artifactAI & Machine LearningPackages LoRA adapters and custom model weights as OCI ModelKit artifacts
okustera_ai_mcp_tokenAI & Machine LearningShort-lived (≤ 15m) audience-scoped MCP tokens backed by Okustera KMS
okustera_s3_bucketObject StorageS3-compatible object storage buckets with quotas, KMS encryption, and versioning
okustera_s3_credentialsObject StorageScoped S3 access keys with automated KMS secret escrow
okustera_storage_volumeBlock StoragePersistent replicated NVMe and standard block storage volumes
okustera_storage_volume_attachmentBlock StorageAttaches persistent block storage volumes to compute instances
okustera_storage_snapshotBlock StoragePoint-in-time copy-on-write volume snapshots
okustera_vpcNetworkingMulti-tier Tenant VPC with automated IPAM tier partitioning
okustera_security_groupNetworkingVirtual firewall security group containers
okustera_security_group_ruleNetworkingIngress and egress firewall packet filtering rules
okustera_floating_ipNetworkingRoutable public IPv4 floating IPs
okustera_floating_ip_associateNetworkingBinds public floating IPs to virtual network ports
okustera_compute_instanceComputeVirtual machines with cloud-init bootstrap
okustera_kubernetes_cluster_templateManaged KubernetesReusable blueprints for managed Kubernetes clusters
okustera_kubernetes_clusterManaged KubernetesProduction Kubernetes clusters with automated kubeconfig
okustera_loadbalancerLoad BalancingHigh-availability managed load balancers with VPC placement
okustera_loadbalancer_listenerLoad BalancingFrontend listeners for HTTP, HTTPS, TCP, UDP, and TLS offload
okustera_loadbalancer_poolLoad BalancingBackend pools with round-robin, least-connections, or source-IP
okustera_loadbalancer_memberLoad BalancingTarget compute/container IPs and traffic weights
okustera_dns_zoneManaged DNSAuthoritative DNS zones with high-availability nameservers
okustera_dns_recordsetManaged DNSAuthoritative DNS recordsets (A, AAAA, CNAME, MX, TXT, SRV, PTR, NS, CAA)
okustera_apisix_routeAPI GatewayManaged ingress routes with SSL/TLS termination, WAF, rate limiting, and CORS
okustera_gateway_certificateAPI GatewayAutomated Let's Encrypt and private CA TLS certificates
okustera_functionServerless FaaSEvent-driven serverless functions with hardware sandbox isolation
okustera_layerServerless FaaSShared dependency layers with multi-tenant RBAC
okustera_layer_versionServerless FaaSImmutable snapshot versions of serverless shared layers
okustera_layer_permissionServerless FaaSCross-tenant access permissions for shared layers
okustera_airflow_workspaceManaged WorkflowsDedicated Apache Airflow workspaces with isolated compute, managed metadata DB, and S3 DAG sync
okustera_workflow_dagManaged WorkflowsManaged Apache Airflow DAGs with S3 synchronization
okustera_billing_budgetFinOps & BillingMonthly budget limits, alert thresholds, and quota freezes

Data Sources​

Data SourceCategoryDescription
okustera_ai_modelsAI & Machine LearningCurated Model Foundry blueprints, AI serving status, and fractional GPU profiles
okustera_ai_sandbox_catalogAI & Machine LearningAvailable Agent Sandbox toolchains, Skill Registry packages, and sandbox security policies
okustera_pricing_ratesFinOps & BillingActive unit pricing across compute, storage, databases, and serverless
okustera_billing_overviewFinOps & BillingRead-only tenant month-to-date spend, forecast, and trends
okustera_observability_overviewObservabilityCluster CPU/RAM utilization, workload health, and network bandwidth
okustera_workflow_statusManaged WorkflowsOperational health, scheduler state, and S3 status of managed Airflow workspaces
okustera_workflow_dagManaged WorkflowsMetadata, execution schedule, tags, and run status of an Airflow DAG
okustera_layerServerless FaaSLookup shared dependency layer details and latest version
okustera_layer_versionServerless FaaSDetails of a specific immutable layer snapshot version
okustera_database_clusterManaged DBaaSLook up operational endpoints for running database clusters
okustera_portNetworkingDiscover virtual network interface ports by port UUID or VM device ID
okustera_compute_flavorComputeSizing specifications (vCPU, RAM, disk) for VM flavors
okustera_imageCompute ImagesLookup available VM and container OS images
okustera_kubernetes_cluster_configManaged KubernetesFetch 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/v1 or https://api.okustera.com/api/v1). May also be set via the OKUSTERA_ENDPOINT environment variable.
  • api_token (String, Sensitive) A Personal Access Token (PAT) for Okustera. May also be set via the OKUSTERA_API_TOKEN environment variable.
  • tenant_id (String) The ID or name of the tenant project to scope operations under. May also be set via the OKUSTERA_TENANT_ID environment variable.
  • username (String) Username for Okustera authentication. May also be set via OKUSTERA_USERNAME.
  • password (String, Sensitive) Password for Okustera authentication. May also be set via OKUSTERA_PASSWORD.
  • totp_code (String, Sensitive) 6-digit TOTP two-factor authentication code. May also be set via OKUSTERA_TOTP_CODE.
  • insecure_skip_verify (Boolean) Set to true to skip TLS certificate verification. Useful for private staging environments with self-signed certificates. Defaults to false. May also be set via OKUSTERA_INSECURE_SKIP_VERIFY.
  • host_header (String) Host header override for API Gateway routing (defaults to portal.okustera.com). May also be set via OKUSTERA_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 to true to activate Workload Identity token discovery.
  • token_file (String) Path to the projected Kubernetes ServiceAccount token file (defaults to /var/run/secrets/okustera/token or OKUSTERA_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​

VariableProvider AttributeDescription
OKUSTERA_ENDPOINTendpointBase URL of the Okustera Cloud API
OKUSTERA_API_TOKENapi_tokenPersonal Access Token
OKUSTERA_TENANT_IDtenant_idProject or Tenant ID
OKUSTERA_HOST_HEADERhost_headerHost header override for API Gateway routing
OKUSTERA_USERNAMEusernameUser account email or ID
OKUSTERA_PASSWORDpasswordUser account password
OKUSTERA_TOTP_CODEtotp_codeTwo-factor authentication code
OKUSTERA_TOKEN_FILEworkload_identity.token_filePath to projected Kubernetes ServiceAccount JWT
OKUSTERA_INSECURE_SKIP_VERIFYinsecure_skip_verifySkip TLS certificate verification