Between these two examples, hopefully that provides enough information to get you going! Also, I’d encourage you to take advantage of Pulumi AI (
https://pulumi.com/ai) to help with this sort of thing. It’s not perfect, but it typically can provide enough information to point users in the right direction.