Hi everyone :wave: I made a small wrapper called p...
# random
g
Hi everyone 👋 I made a small wrapper called pulumi-jsx that lets you define Pulumi resources with a JSX-style syntax. It’s still a small experiment, but I’ve started adding some React-like patterns such as
useRef
for sharing resource references. Example:
Copy code
import { PulumiJsx, useRef } from "pulumi-jsx";
import * as aws from "pulumi-jsx/aws";

const bucket = useRef<aws.s3.Bucket>();

<>
  <aws.s3.Bucket ref={bucket} name="my-bucket" />

  <aws.s3.BucketObject
    name="index-html"
    bucket={bucket.current.id}
    key="index.html"
    content="<h1>Hello World</h1>"
    contentType="text/html"
  />
</>;

export const bucketName = bucket.current.bucket;
Repo: https://github.com/craftitjp/pulumi-jsx I’m curious whether this kind of JSX-based authoring model is interesting to anyone in the Pulumi community. If there’s interest, I’d be happy to expand the wrapper support and improve the developer experience. Would love any feedback, thoughts, or concerns!
❤️ 3
😮 2