#3838·pulumi

[feat] Deno TypeScript runtime support

Author: brandonkalCreated Jan 29, 2020Updated Sep 26, 2026
Labelslanguage/javascriptkind/epicblockedarea/language-hostpulumi/pulumi

I'm going to throw this one out there because it is a natural fit for configuration code.

Pros:

  • No package manager. Let's face it. It's annoying to download a bunch of modules just to "Hello World" a Pulumi Program. For simple things, one will just reach for YAML instead. Because Deno uses standard HTTPS imports you can just run a file and forget about packages.
  • You can run via URL. deno https://example.com/a-pulumi-program.ts could be the Pulumi equivalent of kubectl apply -f https://example.com/some-manifest.yaml
  • Easier to lock down (i.e. a Deno program cannot read environment variables by default so config is more hermetic). It is still an option though if the user specifies.
  • Simple to support.

To support Deno Pulumi would need to

  • Generate TypeScript code that includes the file extension in the imports.
  • Ensure TypeScript code doesn't access modules variable and other legacy CJS things.
  • Distribute code on a nice HTTP endpoint or let raw.githubusercontent.com perform that function. So an import could be
typescript
import * as pulumi from 'https://pulumi.com/[email protected]/mod.ts'
  • The pulumi CLI would handle installing plugin binaries as there is no postinstall scripts like npm.