{"slug": "nebius-mocker-localstack-for-nebius", "title": "Nebius Mocker – LocalStack for Nebius", "summary": "An independent developer released Nebius Mocker, an unofficial local emulator of the Nebius AI Cloud API that serves the same gRPC services as the real cloud so the official Nebius Terraform provider, CLI and SDKs run without a Nebius account. The project, which the author states is not affiliated with, endorsed by or supported by Nebius and is not production grade, runs all-in-one on port 4566 and covers IAM with enforced authorization, Object Storage backed by RustFS, Compute images, Container Registry backed by Harbor, KMS with AES-256-GCM, ECDSA and RSA-OAEP, DNS resolving on port 4653, MysteryBox secrets, VPC networking with real IPAM, Serverless AI endpoint inventory stubs on port 4600, and audit logs.", "body_md": "A local emulator of the [Nebius AI Cloud](https://nebius.com) API, in the spirit of LocalStack. It serves the same\ngRPC services as the real cloud, so the **official** Nebius Terraform provider, CLI and SDKs run against your laptop or\nCI with no Nebius account.\n\nImportant\n\n**This is not an official Nebius project.** It is not affiliated with, endorsed by or supported by Nebius. I develop\nit as a side project to support my other work. I hope it benefits the community and helps others, but don't assume\nit is production grade. Its coverage and behavior will keep changing, driven by how I use Nebius. Issues and\ncontributions are welcome.\n\nStatus: early. **IAM groups, memberships, access permits, service accounts and access keys, with enforced\nauthorization,** and **Object Storage buckets and objects** (S3 data plane backed by [RustFS](https://github.com/rustfs/rustfs))\nwork end to end with the official Terraform provider and SDKs. **Compute images** (public catalog per region, custom\nimages imported from Object Storage) work with the provider's image data source, the Go SDK and the `nebius` CLI. See\n[docs/services/iam.md](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/iam.md#implementation-status),\n[docs/services/storage.md](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/storage.md#implementation-status),\n[docs/services/compute.md](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/compute.md#implementation-status) and the [roadmap](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/architecture/13-milestones.md).\n**Container Registry** works with Terraform, the Go SDK, the `nebius` CLI and `docker push/pull` (images stored in\n[Harbor](https://goharbor.io)); see [docs/services/registry.md](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/registry.md#implementation-status).\n**KMS** symmetric and asymmetric keys work with real crypto (AES-256-GCM, ECDSA, RSA-OAEP), plus rotation and\ndelayed deletion, through Terraform, the Go SDK and the `nebius kms` CLI; see\n[docs/services/kms.md](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/kms.md#implementation-status).\n**DNS** private zones and records work through Terraform, the Go SDK and the `nebius dns` CLI, and resolve with\n`dig @127.0.0.1 -p 4653 <name>` against the mock's DNS responder; see\n[docs/services/dns.md](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/dns.md#implementation-status).\n**MysteryBox (SecretStash) secrets, versions and payloads** work with the official Terraform provider, CLI and Go\nSDK: see [docs/services/mysterybox.md](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/mysterybox.md#implementation-status).\n**VPC networking** (pools, networks, subnets, private and public allocations, route tables and routes, security\ngroups and rules, with real IPAM; `vpc.v1alpha1` as a second view of the same resources, incl. scopes) works with\nTerraform, the Go SDK and the `nebius vpc` CLI; see\n[docs/services/vpc.md](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/vpc.md#implementation-status).\n**Serverless AI endpoints** keep a real inventory (validation, lifecycle, start/stop/restart, auth token or\nMysteryBox secret) through Terraform, the Go SDK and the `nebius ai endpoint` CLI. No container runs: each endpoint\nURL points at an HTTPS stub on `:4600` (local CA, trust it with `curl --cacert`) that answers\n`200 \"endpoint was called\"` to authorized calls; see\n[docs/services/ai.md](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/ai.md#implementation-status).\n**Audit logs**: every mutating call to any service (plus authorization denials) is recorded as a redacted audit\nevent, searchable with the documented filter language and exportable to Object Storage through the Go SDK and\n`nebius audit`; see [docs/services/audit.md](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/audit.md#implementation-status).\n\n```\nmake run    # all-in-one server on :4566 (or: go run ./cmd/nebius-mocker)\n```\n\nPoint the official provider at it. Nothing else changes in your Terraform:\n\n```\nterraform {\n  required_providers {\n    nebius = { source = \"nebius/nebius\", version = \"= 0.6.91\" }\n  }\n}\n\nprovider \"nebius\" {\n  resolvers       = { \"*\" = \"127.0.0.1:4566\" }      # every Nebius service → the mocker\n  address_options = { \"*\" = { insecure = true } }   # plaintext gRPC\n  token           = \"nmock-dev-admin\"               # built-in dev token\n}\n\nresource \"nebius_iam_v1_group\" \"engineers\" {\n  parent_id = \"tenant-e00mock0000000000default\"     # seeded default tenant\n  name      = \"engineers\"\n}\n\ndata \"nebius_compute_v1_image\" \"ubuntu\" {           # seeded public image catalog\n  parent_id = \"project-e00public-images\"\n  name      = \"ubuntu24.04-driverless-20251015\"\n}\n```\n\nCompute images work with the `nebius` CLI too (profile endpoint `localhost:4566`, `--insecure`), with payloads in\nRustFS when `NEBIUS_MOCKER_OBJSTORE=rustfs`\n([details](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/compute.md#implementation-status)):\n\n```\nnebius compute image list-public --region eu-north1\nnebius compute image get-latest-by-family --image-family ubuntu24.04-driverless\nnebius compute image create --parent-id project-e00mock000000000default --name my-image \\\n  --source-storage-bucket-name my-bucket --source-storage-object-name disk.qcow2\n```\n\nVMs, including GPU VMs, are inventory only: instances go through their lifecycle, get VPC addresses and attach\nmanaged or existing disks, but nothing boots ([details](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/compute.md#instances-implemented)):\n\n```\ndata \"nebius_vpc_v1_subnet\" \"default\" {\n  parent_id = \"project-e00mock000000000default\"\n  name      = \"default-subnet\"\n}\n\nresource \"nebius_compute_v1_instance\" \"gpu\" {\n  parent_id = \"project-e00mock000000000default\"\n  name      = \"trainer\"\n  resources = { platform = \"gpu-h100-sxm\", preset = \"8gpu-128vcpu-1600gb\" }\n  boot_disk = {\n    attach_mode = \"READ_WRITE\"\n    managed_disk = {\n      name = \"trainer-boot\"\n      spec = {\n        type                = \"NETWORK_SSD\"\n        size_gibibytes      = 200\n        source_image_family = { image_family = \"ubuntu24.04-cuda12\" }\n      }\n    }\n  }\n  network_interfaces = [{\n    name              = \"eth0\"\n    subnet_id         = data.nebius_vpc_v1_subnet.default.id\n    ip_address        = {}\n    public_ip_address = {}\n  }]\n}\n```\n\n- **Coverage:** 89 of the provider's 116 objects (resources, data sources and ephemeral resources) work and are tested\nend to end.[docs/terraform.md](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/terraform.md) lists every object with its status, compared with the official\nprovider docs. Missing objects fail with`UNIMPLEMENTED` ; the main gaps are mk8s and the managed databases.\n- **Fidelity:** each supported resource goes through create, an empty`terraform plan` , an in-place update, another\nempty plan, replacement on immutable attributes, and destroy, all with the official provider. If a plan after\napply shows a diff, that is a bug in the mock.\n- **Seeded parents:** tenant`tenant-e00mock0000000000default` , project`project-e00mock000000000default` (`eu-north1` )\nwith a default network and`default-subnet` , and public images in`project-e00public-images` .\n- **Authorization:**`NEBIUS_MOCKER_AUTHZ=enforce` makes permits real, so`nmock-dev-viewer` gets`PERMISSION_DENIED` on\nwrites. The provider's`service_account` credentials work through the mock's token exchange.\n- **State:** the mock keeps everything in memory. After a restart, re-apply or delete your Terraform state.\n- **No hardware:** VMs, GPU clusters and disks are management-plane records only. Shared filesystems hold real data\nin RustFS and can be mounted with rclone.\n\nBuckets work out of the box. For object reads and writes, run [RustFS](https://github.com/rustfs/rustfs) and point the\nmocker at it; the mocker's S3 front (`:4580`) checks Nebius access keys and permits and relays to RustFS:\n\n```\ndocker run -d --name rustfs -p 127.0.0.1:9000:9000 rustfs/rustfs:1.0.6\nNEBIUS_MOCKER_OBJSTORE=rustfs make run\n```\n\nCreate a service account with a permit (or in the `editors` group) and a `nebius_iam_v2_access_key`, then use any S3\nclient with that key, region `eu-north1` and endpoint `http://127.0.0.1:4580` (path style), as the Nebius quick start\ndoes: `aws configure set endpoint_url http://127.0.0.1:4580`, `aws s3 mb s3://my-bucket`, `aws s3 cp`, `aws s3 ls`.\nBuckets can also be created with `nebius storage bucket create` or `nebius_storage_v1_bucket`. CORS, bucket policies\n(incl. anonymous reads), lifecycle rules, size limits and storage classes take effect; see the storage doc for what is\nrejected. Terraform objects use the official `hashicorp/aws`\nprovider; see [docs/services/storage.md](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/storage.md#terraform).\n\nBucket inventories (`nebius storage inventory create`, `nebius_storage_v1_inventory`) write AWS-compatible CSV or\nParquet reports with a manifest into the destination bucket, the first one within a minute, then daily or weekly.\nData transfers (`nebius storage transfer create --file transfer.json`, `nebius_storage_v1_transfer`) really copy\nobjects into or out of mocker buckets from another bucket, any S3-compatible endpoint (MinIO, a second RustFS, AWS) or\nAzure Blob Storage (e.g. Azurite), iteration by iteration. See\n[storage.md](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/storage.md#inventories).\n\nCommon settings (all `NEBIUS_MOCKER_*` env vars, see [configuration](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/architecture/11-configuration.md)):\n\n| Env | Default | Meaning | \n|---|---|---|\n| `NEBIUS_MOCKER_LISTEN` | `:4566` | gRPC edge address | \n| `NEBIUS_MOCKER_AUTHN` | `optional` | `required` rejects requests without a valid token | \n| `NEBIUS_MOCKER_AUTHZ` | `audit` | `enforce` blocks requests the caller's roles do not allow;`audit` only logs them;`off` skips checks | \n| `NEBIUS_MOCKER_DEV_TOKENS` | `nmock-dev-admin` ,`nmock-dev-editor` ,`nmock-dev-viewer` | `token=principal,…` static tokens | \n| `NEBIUS_MOCKER_OP_DELAY` | `0` | Keep operations running this long (exercise client polling) | \n| `NEBIUS_MOCKER_IDS` | `random` | `sequential` for predictable IDs | \n| `NEBIUS_MOCKER_REGIONS` | `eu-north1=e00,eu-west1=e01,us-central1=u00,me-west1=m00` | Regions (and NID routing codes) with a public image catalog | \n| `NEBIUS_MOCKER_IAM_PROJECTS` | — (only `default` ) | `name[:region],…` extra projects seeded in the default tenant, with stable IDs ([details](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/iam.md#configuration) ) | \n| `NEBIUS_MOCKER_COMPUTE_IMAGES_FILE` | built-in | Replace the public image catalog ( [format](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/compute.md#catalogs-seed) ) | \n| `NEBIUS_MOCKER_COMPUTE_FABRICS_FILE` | built-in | Replace the InfiniBand fabric catalog of GPU clusters ( [format](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/compute.md#gpu-clusters-implemented) ) | \n| `NEBIUS_MOCKER_REGISTRY_BACKEND` | `memory` | `harbor` stores images in Harbor and serves docker on`NEBIUS_MOCKER_REGISTRY_LISTEN` (`:4590` ) | \n\n```\ndeploy/harbor/harbor.sh up /tmp/harbor && . /tmp/harbor/env      # throwaway Harbor (Docker)\nmake docker-image                                                 # nebius-mocker:dev\ndocker run -d --name nebius-mocker --network \"$HARBOR_NETWORK\" -p 127.0.0.1:4566:4566 -p 127.0.0.1:4590:4590 \\\n  -e NEBIUS_MOCKER_REGISTRY_BACKEND=harbor -e NEBIUS_MOCKER_REGISTRY_HARBOR_URL=\"$HARBOR_INTERNAL_URL\" nebius-mocker:dev\n\n# the documented Nebius login, with a profile whose endpoint is localhost:4566 and a dev token file\nnebius iam get-access-token --insecure | docker login 127.0.0.1:4590 --username iam --password-stdin\ndocker push 127.0.0.1:4590/<registry ID without \"registry-\">/app:v1\n```\n\nRun the mocker as a container for docker: Docker Desktop's daemon can reach published container ports but not a host\nprocess. The credential-helper flow (`nebius registry configure-helper`) and the details are in\n[docs/services/registry.md](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/services/registry.md#running-it-the-documented-setup).\n| `NEBIUS_MOCKER_OBJSTORE` | `memory` | `rustfs` stores objects in RustFS (`NEBIUS_MOCKER_OBJSTORE_ENDPOINT`, default `http://127.0.0.1:9000`) |\n| `NEBIUS_MOCKER_STORAGE_S3_LISTEN` | `:4580` | Object Storage S3 front (`off` disables it) |\n| `NEBIUS_MOCKER_DNS_LISTEN` | `:4653` | DNS responder for the mock's zones, UDP and TCP (`off` disables it) |\n| `NEBIUS_MOCKER_AI_LISTEN` | `127.0.0.1:4600` | HTTPS stub that AI endpoint URLs point at (`NEBIUS_MOCKER_AI_PUBLIC_URL` overrides the advertised base URL; TCP ports use `NEBIUS_MOCKER_AI_TCP_LISTEN`, `:4601`) |\n| `NEBIUS_MOCKER_AI_TLS_DIR` | `<user config dir>/nebius-mocker/ca` | Local CA of the AI data plane; trust `<dir>/ca.pem` (`curl --cacert`) |\n\n```\nmake hooks   # once: install the pre-commit gate\nmake check   # lint (layering rules included) + unit/contract/architecture tests with -race\nmake e2e     # real terraform + official nebius provider against the mock\nmake e2e-images  # compute images on RustFS with the Go SDK and the nebius CLI (Docker)\nmake e2e-filesystems  # shared filesystems on RustFS mounted with rclone (FUSE in Docker) via a filesystem bucket\nmake e2e-registry  # Harbor + nebius CLI + docker push/pull (needs Docker; Harbor is started and removed)\nmake e2e-storage  # Object Storage with RustFS in Docker: Terraform (nebius + aws providers), gosdk + AWS SDK, nebius + aws CLIs\n```\n\nRead [docs/architecture](https://github.com/kfirgollan/NebiusMocker/blob/main/docs/architecture/README.md) first. The Go rules for this repo live in `.claude/skills/`\n(`go-architecture`, `go-style`, `go-errors`, `go-concurrency`, `go-patterns`, `go-testing`, `go-lint`) and are enforced\nby `.golangci.yml` and `test/arch`.\n\nApache-2.0. See [LICENSE](https://github.com/kfirgollan/NebiusMocker/blob/main/LICENSE).", "url": "https://wpnews.pro/news/nebius-mocker-localstack-for-nebius", "canonical_source": "https://github.com/kfirgollan/NebiusMocker", "published_at": "2026-11-26 08:26:11+00:00", "updated_at": "2026-11-26 08:42:14.714635+00:00", "lang": "en", "topics": ["ai-infrastructure", "developer-tools", "ai-tools"], "entities": ["Nebius AI Cloud", "Nebius Mocker", "Nebius", "Terraform", "RustFS", "Harbor", "LocalStack"], "also_reported_by": [], "takeaway": "Nebius Mocker serves the same gRPC services as Nebius AI Cloud on port 4566, letting the official Nebius Terraform provider, CLI and SDKs run locally with no account, though Serverless AI endpoints only return a stub 200 \"endpoint was called\" and no container runs.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/nebius-mocker-localstack-for-nebius", "markdown": "https://wpnews.pro/news/nebius-mocker-localstack-for-nebius.md", "text": "https://wpnews.pro/news/nebius-mocker-localstack-for-nebius.txt", "jsonld": "https://wpnews.pro/news/nebius-mocker-localstack-for-nebius.jsonld"}}