say I want to implement a new Azure resource in Pu...
# general
r
say I want to implement a new Azure resource in Pulumi (app gateway), what's the best starting point to learn? I understand it's based of the Terraform provider but I'm at a loss when I see something like
super("azure:core/resourceGroup:ResourceGroup", name, inputs, opts);
. Where does this id key come from?
s
Hi Yohan, right now all of the SDKs for Azure are generated by a program called
tfgen
, which takes the Terraform provider and applies some mapping rules (defined in
resources.go
in the
pulumi-azure
repository)
Currently there isn’t a way to add a resource which doesn’t exist in the Terraform provider itself
r
hi @stocky-spoon-28903 the resource does exist in the Terraform provider, it just hasn't been surfaced by the Pulumi SDK yet I guess
s
Interesting - what version was it in?
I thought we were basically up-to-date with the Terraform provider
unless I just haven't seen it in the docs 🙈
r
😐
sorry for the wasted time! 🙂
s
Hah, not a problem
👍 1
FWIW if you want a quick way to find the terraform resource name -> pulumi name, look in this file: https://github.com/pulumi/pulumi-azure/blob/master/resources.go#L506
r
thanks!