See full resource & data source reference on the Control Plane Pulumi Registry.
Create Directory
Initialize Project
Select Language
Project Name
pulumi-cpln-infra
).Stack Name
dev
).Option | Env Var | Default |
---|---|---|
org | CPLN_ORG | None (Required) |
endpoint | CPLN_ENDPOINT | https://api.cpln.io (Optional) |
profile | CPLN_PROFILE | The default CLI profile (Optional) |
token | CPLN_TOKEN | None (Optional) |
refreshToken | CPLN_REFRESH_TOKEN | None (Optional) |
index.ts
, __main__.py
, main.go
, Program.cs
) to define a resource.
Convert HCL to Pulumi Code
Create a New Pulumi Stack
<stackName>
with your desired name (e.g. migrate
):Import Terraform State
/path/to/terraform.tfstate
with the location of your state file. This reads the specified state and merges its resources into your Pulumi stack’s state.Review Code