pulumi / pulumi-yaml

YAML language provider for Pulumi
Apache License 2.0
39 stars 12 forks source link

Missing documentation for specifying provider API version / Pulumi type token #426

Open BoSoeborgPetersen opened 1 year ago

BoSoeborgPetersen commented 1 year ago

What happened?

While working with the Azure-Native/ContainerRegistry/Registry resource, I wanted to set the "zoneRedundancy" property, but it is only available from API version "2021-09-01", so I wanted to use this API version.

In C# I would change namespace, but figuring out how to do this in Yaml required me to dig into the Pulumi source code and do some trial and error.

I finally figured out that this is the required format: azure-native:containerregistry/v20210901:Registry

Steps to reproduce

n/a

Expected Behavior

In the Azure-Native version guide, I would expect there to be a tab for Yaml, like there is for TypeScript, Python, Go and C#. Or maybe in the Pulumi YAML Reference, it should be mentioned under the description for the type property (current description is "Type is the Pulumi type token for this resource.")

Actual Behavior

n/a

Output of pulumi about

n/a

Additional context

No response

Contributing

Vote on this issue by adding a šŸ‘ reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

aq17 commented 1 year ago

Thanks for bringing this up @BoSoeborgPetersen ; publishing docs for all versions of azure-native is on our backlog to increase resource discoverability.