Manage your Better Stack resources as code with Pulumi. One provider covers monitors, heartbeats, on-call, escalation policies, status pages, sources, collectors, dashboards, error tracking and the rest of the Better Stack API, in TypeScript, Python, Go, C#, Java or YAML. Every resource is on the Pulumi Registry.
Add the package for your language to your Pulumi project:
For Java, add com.betterstack:pulumi from Maven Central. A YAML program needs no package.
Store a global API token as a secret:
The provider also reads the BETTERSTACK_API_TOKEN environment variable. When your token can reach more than one team, set the team the provider creates resources in:
Run pulumi up to create the monitor.
The Pulumi Registry lists every resource and function with its inputs and outputs.
Bring a resource you created in Better Stack under Pulumi with its ID:
To pick up changes made in Better Stack, refresh the stack's state before the update with pulumi up --refresh. To refresh before every operation, set it in your Pulumi.yaml:
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.