Skip to the content.

Terraform with NebiusMocker

The official nebius/nebius Terraform provider runs against the mock unmodified. This page shows how to point it at the mock, what to expect, and which provider objects work today compared with the full list in the official provider docs.

Checked against provider 0.6.91, the newest release on the Terraform Registry (2026-11-25), and its documentation at registry.terraform.io and docs.nebius.com/terraform-provider. Status as of 2026-11-26 (main at a4c320a, plus the IAM federation work).

Summary

Kind In the official provider Supported and tested Supported, no Terraform test Provider-local (no API) Missing
Resources 50 49 0 1 (nebius_hash) 0
Data sources 62 61 0 1 (nebius_parent_id) 0
Ephemeral resources 4 4 0 0 0
Total 116 114 0 2 0

“Supported and tested” means every RPC the provider calls for the object is implemented, and an end-to-end test runs the real provider through it. For resources, that test covers create, an empty terraform plan, an in-place update, another empty plan, replacement where the provider marks attributes as immutable, and destroy, with the mock’s state checked through the Go SDK after each step. For a missing object, the mock answers UNIMPLEMENTED, so terraform apply fails with an error that names the gRPC service.

Pointing the provider at the mock

terraform {
  required_providers {
    nebius = { source = "nebius/nebius", version = "= 0.6.91" }
  }
}

provider "nebius" {
  resolvers       = { "*" = "127.0.0.1:4566" }      # every Nebius service → the mock's gRPC edge
  address_options = { "*" = { insecure = true } }   # plaintext gRPC
  token           = "nmock-dev-admin"               # built-in dev token
}

These three settings are the only change. The same configuration works against real Nebius once you remove them and supply real credentials.

Resources

Resource Status Notes
nebius_ai_v1_endpoint ✅ Inventory only, and no container runs. The endpoint URL points at an HTTPS stub that answers 200 "endpoint was called". UDP ports are rejected (ai.md)
nebius_applications_v1alpha1_k8s_release ✅ Needs mk8s
nebius_billing_v1_pricing_policy ✅ Spot prices and max_price bounds come from an illustrative price list. No VM runs under a policy yet, so running_vm_count stays 0 (billing.md)
nebius_capacity_v1_capacity_allowance ✅ Block groups are seeded from a catalog. A limit may exceed the group’s size, and the effective limit is the smaller of the two (capacity.md)
nebius_compute_v1_disk ✅ From an image, an image family or a snapshot. No quotas (compute.md)
nebius_compute_v1_disk_snapshot ✅  
nebius_compute_v1_filesystem ✅ Real data in RustFS, and the size limit is enforced. The NETWORK_SSD family only: NETWORK_HDD, WEKA and VAST are rejected (compute.md)
nebius_compute_v1_gpu_cluster ✅ Checked against a fabric catalog. No topology or capacity simulation (compute.md)
nebius_compute_v1_instance ✅ CPU and GPU platforms, managed and existing disks, filesystems, GPU clusters, private and public IPs, NVL instance groups (nvl_instance_group_id, recovery_policy = ALWAYS), and stop/start. Nothing boots. Preemptible instances are accepted but never preempted. Specific reservations (reservation_ids), spot pricing policies and local disk passthrough are rejected by name (compute.md)
nebius_compute_v1_nvl_instance_group ✅ GB200/GB300 groups; members are instances on the illustrative gpu-gb200 / gpu-gb300 platforms, and delete is refused while the group has members. No NVLink domain is simulated (compute.md)
nebius_dns_v1_record ✅ Types A, MX, TXT, SRV, CAA, SVCB, HTTPS; CNAME, AAAA, PTR rejected by name, as in the docs. Served by the mock’s DNS responder (dns.md)
nebius_dns_v1_zone ✅ Private zones bound to a VPC network; creates the service-managed SOA and NS records (dns.md)
nebius_hash ➖ Provider-local Computed by the provider, with no API call
nebius_iam_v1_access_permit ✅ Enforced under NEBIUS_MOCKER_AUTHZ=enforce
nebius_iam_v1_auth_public_key ✅ Usable as provider service_account credentials
nebius_iam_v1_federated_credentials ✅ Workload identity: an OIDC JWT exchanges for a service-account token (gosdk, CLI profile, /oauth2/token/exchange). The mock serves a fake OIDC issuer at /_mocker/oidc/<name>. federated_subject_id is required (iam.md)
nebius_iam_v1_federation ✅ SAML settings are stored, but no SAML sign-in runs. Deactivate the federation before terraform destroy: an active one cannot be deleted (iam.md)
nebius_iam_v1_federation_certificate ✅ data must be a PEM X.509 certificate. Status (fingerprint, validity) is computed from it
nebius_iam_v1_group ✅  
nebius_iam_v1_group_membership ✅  
nebius_iam_v1_invitation ✅ No email is sent. Accept with POST /_mocker/iam/invitations/<id>/accept (iam.md)
nebius_iam_v1_service_account ✅  
nebius_iam_v2_access_key ✅ Works as S3 credentials on the mock’s S3 front
nebius_iam_v2_project ✅  
nebius_kms_v1_asymmetric_key ✅ Real ECDSA and RSA keys. Key import is not supported (kms.md)
nebius_kms_v1_symmetric_key ✅ Real AES-256-GCM keys, with rotation and delayed deletion
nebius_mk8s_v1_cluster ✅  
nebius_mk8s_v1_node_group ✅  
nebius_mk8s_v1alpha1_cluster ✅  
nebius_mk8s_v1alpha1_node_group ✅  
nebius_msp_mlflow_v1alpha1_cluster ✅ A real tracking server with NEBIUS_MOCKER_MSP_MLFLOW_BACKEND=docker, artifacts in the cluster’s bucket (msp-mlflow.md)
nebius_msp_postgresql_v1alpha1_cluster ✅ Real PostgreSQL with NEBIUS_MOCKER_MSP_POSTGRESQL_BACKEND=docker; cross-region backup replication rejected (msp-postgresql.md)
nebius_mysterybox_v1_secret ✅ No encryption with a customer KMS key (mysterybox.md)
nebius_mysterybox_v1_secret_version ✅  
nebius_quotas_v1_quota_allowance ✅ Limits are enforced on creates across compute, VPC, DNS, storage, mk8s, registry, MysteryBox and KMS, with live usage; destroy resets to the default (quotas.md)
nebius_registry_v1_registry ✅ docker push/pull work with the Harbor backend (registry.md)
nebius_storage_v1_bucket ✅ CORS, policies, lifecycle rules, size limits and storage classes take effect with the RustFS backend (storage.md)
nebius_storage_v1_inventory ✅ Reports (CSV/Parquet, manifest) really land in the destination bucket on the mock clock (storage.md)
nebius_storage_v1_transfer ✅ Iterations really copy objects (Nebius, S3-compatible and Azure Blob sources) with the RustFS backend (storage.md)
nebius_storage_v1alpha1_transfer ✅ Deprecated API; same engine, its transfers are also visible through v1
nebius_tunnel_v1_tunnel ✅ Inventory only: stays DISCONNECTED, since no agent can connect (tunnel.md)
nebius_vpc_v1_allocation ✅ Real IP address management: private and public addresses come from pool CIDRs (vpc.md)
nebius_vpc_v1_network ✅  
nebius_vpc_v1_pool ✅  
nebius_vpc_v1_route ✅  
nebius_vpc_v1_route_table ✅  
nebius_vpc_v1_security_group ✅  
nebius_vpc_v1_security_rule ✅ Stored and validated. No traffic is filtered
nebius_vpc_v1_subnet ✅  
nebius_vpc_v1alpha1_allocation ✅ Same allocations and IPAM as nebius_vpc_v1_allocation: v1alpha1 is a second view of the v1 resources (vpc.md)

Data sources

Data source Status Notes
nebius_ai_v1_endpoint ✅  
nebius_applications_v1alpha1_k8s_release ✅  
nebius_billing_v1_pricing_policy ✅  
nebius_capacity_v1_capacity_allowance ✅  
nebius_capacity_v1_capacity_block_group ✅  
nebius_compute_v1_disk ✅  
nebius_compute_v1_disk_snapshot ✅  
nebius_compute_v1_filesystem ✅  
nebius_compute_v1_gpu_cluster ✅  
nebius_compute_v1_image ✅ Seeded public catalog for each region, plus custom images imported from Object Storage
nebius_compute_v1_instance ✅  
nebius_compute_v1_nvl_instance_group ✅  
nebius_dns_v1_record ✅  
nebius_dns_v1_zone ✅  
nebius_iam_v1_access_permit ✅  
nebius_iam_v1_auth_public_key ✅  
nebius_iam_v1_federated_credentials ✅ By ID, or by parent_id and name
nebius_iam_v1_federation ✅ By ID, or by parent_id and name
nebius_iam_v1_federation_certificate ✅  
nebius_iam_v1_group ✅ Tested in make e2e-filesystems
nebius_iam_v1_group_membership ✅  
nebius_iam_v1_invitation ✅  
nebius_iam_v1_project ✅  
nebius_iam_v1_service_account ✅  
nebius_iam_v1_tenant ✅  
nebius_iam_v1_tenant_user_account ✅ The static-token users and invited users
nebius_iam_v2_access_key ✅  
nebius_iam_v2_project ✅  
nebius_iam_v2_tenant ✅ Reading by name needs parent_id = <tenant ID>
nebius_kms_v1_asymmetric_key ✅  
nebius_kms_v1_symmetric_key ✅  
nebius_mk8s_v1_cluster ✅  
nebius_mk8s_v1_node_group ✅  
nebius_mk8s_v1alpha1_cluster ✅  
nebius_mk8s_v1alpha1_node_group ✅  
nebius_msp_mlflow_v1alpha1_cluster ✅  
nebius_msp_postgresql_v1alpha1_cluster ✅  
nebius_mysterybox_v1_secret ✅  
nebius_mysterybox_v1_secret_payload_entry ✅  
nebius_mysterybox_v1_secret_version ✅  
nebius_parent_id ➖ Provider-local Resolved by the provider, with no API call
nebius_quotas_v1_quota_allowance ✅ Limits are enforced on creates across compute, VPC, DNS, storage, mk8s, registry, MysteryBox and KMS, with live usage; destroy resets to the default (quotas.md)
nebius_registry_v1_registry ✅  
nebius_storage_v1_bucket ✅  
nebius_storage_v1_inventory ✅  
nebius_storage_v1_transfer ✅  
nebius_storage_v1alpha1_transfer ✅  
nebius_tunnel_v1_tunnel ✅  
nebius_vpc_v1_allocation ✅  
nebius_vpc_v1_default_network ✅ Seeded default network and subnet in each project
nebius_vpc_v1_network ✅  
nebius_vpc_v1_pool ✅  
nebius_vpc_v1_route ✅  
nebius_vpc_v1_route_table ✅  
nebius_vpc_v1_security_group ✅  
nebius_vpc_v1_security_rule ✅  
nebius_vpc_v1_subnet ✅  
nebius_vpc_v1alpha1_allocation ✅  
nebius_vpc_v1alpha1_network ✅ The v1 networks; spec.pools lists the private pools
nebius_vpc_v1alpha1_pool ✅  
nebius_vpc_v1alpha1_scope ✅ Two system scopes per project: default-private-scope, default-public-scope
nebius_vpc_v1alpha1_subnet ✅  

Ephemeral resources

Ephemeral resource Status Notes
nebius_iam_token ✅ Returns the provider’s token, or exchanges service-account credentials
nebius_iam_v2_access_key_secret ✅ Feed it to the aws provider for S3 objects
nebius_mysterybox_v1_secret_payload ✅  
nebius_mysterybox_v1_secret_payload_entry ✅  

What is missing, by area

Nothing: every object in provider 0.6.91 that calls the API is supported and tested. nebius_hash and nebius_parent_id are computed by the provider itself.

Across the supported objects, these are not modeled (each service doc’s “Not yet” has the details):

Each service doc’s Implementation status section lists the field-level gaps. Fields the mock does not support are rejected with an error that names them, never silently ignored.

How this list is kept current

Run /terraform-sweep (.claude/skills/terraform-sweep/). Its script (python3 -I .claude/skills/terraform-sweep/scripts/sweep.py) does three things:

The skill then has you check the changes against the code and update the notes, the “missing by area” table, services/terraform-coverage.md, the README and the service docs.

The Terraform suites live in test/terraform/<area> and run with make e2e. The Docker-backed flows run with make e2e-<area>. A new provider release is adopted (the pin bumped and the gaps filled) through an add-nebius-service refresh. Run the sweep again afterwards.