You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/iac/extending-pulumi/use-terraform-module.md
+108-1Lines changed: 108 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ packages:
117
117
- rdsmod
118
118
```
119
119
120
-
{{% chooser language "typescript,python,yaml" %}}
120
+
{{% chooser language "typescript,python,csharp,yaml" %}}
121
121
122
122
{{% choosable language typescript %}}
123
123
@@ -422,6 +422,113 @@ func main() {
422
422
```
423
423
{{% /choosable %}}
424
424
425
+
{{% choosable language csharp %}}
426
+
427
+
Since this was a C# project, Pulumi generated a C# SDK for the modules, making those available to use as `Pulumi.Rdsmod` and `Pulumi.Vpcmod`. We can now use the Terraform modules directly in our code:
When authoring in YAML, there's no need for Pulumi to generate a SDK. In the YAML you can reference the Terraform module by its schema token, which takes the format `<module-name>:index:Module`:
0 commit comments