https://pulumi.com logo
m

miniature-leather-70472

08/05/2022, 9:50 PM
Is there anyway to store additional data in the state file outside of creating a resource? To give more detail, I've got some plain C# code that calls a rest api as part of a Pulumi project ( there's no Pulumi resource for it) this works fine, but currently it gets called every time I run Pulumi up. Ideally I'd like to only run this on the first run the deployment, so if I could store the value in the state file and check for that existing this might deal with that.
s

steep-toddler-94095

08/06/2022, 2:53 AM
m

miniature-leather-70472

08/08/2022, 3:04 PM
unfortuantely dynamic providers aren't supported in .net, else yes that would do the job.
☹️ 1
2 Views