Manage Cloud with Pulumi
Manage your Cloud servers, firewalls and SSH keys as code with Pulumi.
Install the provider
Pulumi downloads the provider plugin on your first pulumi up.
Configure the provider
Create a global API token in Settings → API tokens → Global tokens. Store it as a secret when Pulumi asks for it, and set the data center your resources are in:
Create your first server
Add your SSH key, a firewall that lets in SSH and HTTPS, and a server that uses both. Replace t123 with your team's ID from betterstack team list in the Cloud CLI:
Connect as root:
A firewall created this way has no inbound rules of its own, so keep the SSH rule to reach the server.
Removing a server?
Servers start with deletionProtection on. To remove one with pulumi destroy, set deletionProtection: false and run pulumi up first.
Need help?
Please let us know at hello@betterstack.com.
We're happy to help! 🙏