1
Install Terraform
Install Terraform from the official downloads if you don’t have it yet, then confirm it’s on your path:
2
Create an API key
In the Strettch Cloud console, create an API key, then expose it to Terraform:
3
Configure the provider
Create a
main.tf and declare the provider:main.tf
4
Define your first compute
Add a compute instance and output its public IP:
main.tf
5
Initialize and apply
Download the provider, preview the plan, then create the instance:Terraform prints the
public_ip output when the apply completes — SSH in with the key you provided.6
Clean up
When you’re done, tear everything down:
Look up catalog values
Rather than pinning an image, region, or size to a slug that might change, look them up as data sources and reference the result:Next steps
Full reference
Every resource, data source, and argument on the Terraform Registry.
Reboot on demand
Trigger a reboot from the command line or a lifecycle event (Terraform 1.14+).