pulumi / pulumi-dotnet

.NET support for Pulumi
Apache License 2.0
28 stars 25 forks source link

No way to register stack level transformations using a top-level async program #202

Open phillipedwards opened 1 year ago

phillipedwards commented 1 year ago

What happened?

see title

Example

https://www.pulumi.com/docs/concepts/options/transformations/#stack-transformations

no way to do the above with a top-level async program such as

using System.Collections.Generic;
using Pulumi;

return await Deployment.RunAsync(() =>
{
   // no way to register stack transformations with this type

   // Export outputs here
   return new Dictionary<string, object?>
   {
      ["outputKey"] = "outputValue"
   };
});

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).