Pulumi is an infrastructure-as-code framework that supports popular programming languages such as Go, JS/TS, Python, and .NET Platform. With env zero, you can enjoy all of the benefits that are built on top of it such as Plan on Pull Request, Drift Detection, and more… Unlike the HCL language that is used in terraform, Pulumi represents the concept of writing IaC by commonly used programming languages. There are many benefits of such concept, for example, strong-type support, homogeneous codebase, testing easiness, etc. You can read more about Pulumi in their docs.Documentation Index
Fetch the complete documentation index at: https://docs.envzero.com/llms.txt
Use this file to discover all available pages before exploring further.
Environment Deployment
To manage your Pulumi executions in env zero, follow these steps:- Create a Pulumi Template first.
- Create
env0.ymlfile in the target repository and inject a required packages installation command
(npm ifor example, see gist). - Connect your cloud account
- Add
PULUMI_ACCESS_TOKENenvironment variable - Create an environment, you can set the stack name if you already configured one, if not, env zero will create a random stack name.
Execution Steps
Beyond the common steps such as Clone, Loading variables, etc. Deploy/Destroy Pulumi environment contains the following steps:- Pulumi Login -
pulumi login --non-interactive - Stack Selection -
pulumi stack select --create <stack_name> - Pulumi Preview -
pulumi preview --refresh --diff --show-replacement-steps - Pulumi Up -
pulumi up -f --yes --refresh --diff --show-replacement-steps - Pulumi Stack Output
- Pulumi Destroy -
pulumi destroy -f --yes --refresh --diff --show-replacement-steps

Additional Configuration
Check out Pulumi’s Environment Variable configurations to further customize your environment For example, to use your own S3 remote backend, create an Environment Variable in your env zero Environment withPULUMI_BACKEND_URL=s3://your-pulumi-state-bucket
Next steps
- Template Overview - Learn how templates are structured and configured.
- Managing VCS - Connect a VCS provider for GitOps deployments.
- Managing Variables - Set environment variables like PULUMI_ACCESS_TOKEN.