testcosmos-setup

command
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package main implements a CLI for managing the Cosmos DB database and containers used by the protosource event store. Mirrors the Dynamo-side cmd/testdynamo-setup tool but speaks the Cosmos NoSQL API.

Quickstart against the local emulator (Linux/Windows host):

docker run --rm -p 8081:8081 -p 10250-10255:10250-10255 \
  --name cosmos-emulator \
  mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator

export COSMOS_ENDPOINT=https://localhost:8081
export COSMOS_KEY='C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=='
export COSMOS_INSECURE=1   # emulator uses a self-signed cert
testcosmos-setup create

Against a real Azure account, prefer Managed Identity (set COSMOS_USE_DEFAULT_CREDENTIAL=1) and omit COSMOS_KEY.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL