Justin Van Patten

Results 202 comments of Justin Van Patten

The short-term workaround would be to add workable `isInstance` methods on all of our component resources (e.g. in AWSX and EKS), which would be cheap and easy to do. @lukehoban,...

> This code compiles for me and `cluster` shows the right type but the rule is never hit Right. The problem is the way type checking is done with `validateResourceOfType`...

> Related to this issue appears to be the fact that `args.props` is empty for component resources. Indeed, this is a limitation of component resources that we'd need to revisit...

I've opened https://github.com/pulumi/pulumi/issues/10533 to reconsider passing component resource properties to the engine, so that they'd be available in policies (among other things).

There is an old hackathon project to add a Go SDK: https://github.com/pulumi/pulumi-policy/compare/hackweek/go-policy

> 1. Is the Python implementation equivalent to the TypeScript one? Yes. The TypeScript implementation does have some more advanced capabilities for filtering to specific resource types, but they're largely...

Hmm, you should be able to have an async validator functio. We have tests for this: https://github.com/pulumi/pulumi-policy/blob/8cef30d09a07d580122c854de1ad0fb193a0521f/sdk/python/lib/test/test_policy.py#L107-L115 I'm not familiar with `aws.pricing.get_product`. Does it return an `Awaitable`? If so, what...

This was fixed with #314 (and associated CLI changes)

This isn't critical for GA and can happen after.