Hi everyone, new to pulumi , I want to programatic...
# getting-started
s
Hi everyone, new to pulumi , I want to programatically (c#) edit the main yaml file with yaml runtime (deserialize the stack from yaml into classes, modify data, add resources, etc, then save ), but looking at the automation API could not find a way. The GetProjectSettingsAsync for example just throws exception when finds runtime yaml. Am I missing some other APIs to do this ?
e
Just use a standard yaml library to do this, no need to use automation api.
s
Thanks Fraser, was hoping the api presents both the stack state and the stack definition, but can parse the yaml file on disk, as you suggest.
e
YAML programs are an extension to the core project file specification so I don't think we'd ever extend automation api to cover that, would require trying to keep all the automation apis in sync with YAML and the intention is these different runtimes shouldn't need to care about each other.
s
👍