gorgeous-grass-95265
03/19/2026, 9:52 AMuseRef for sharing resource references.
Example:
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!