Is there a way to manage `pulumi config` any other...
# general
g
Is there a way to manage
pulumi config
any other way than invoking cli? For example can I restore the remote config from the local?
s
what do you mean by "restore the remote config from the local"? Are you saying you would like to update the config as show in the console using a local yaml file ?
g
I mean if I have a structure like this
Copy code
config:
  project:database:
    app:
      password:
        secure: AAABAOeZOoIfFiQ+2w94NwR7TVMcqbib8cM3ihg5y6rg/Dgavu6J
      user: app
I need to run
Copy code
pulumi config set-all --path \
  --secret database.app.password=encoded \
  --plaintext database.migrator.user=mgr \
  --secret database.migrator.password=scrt
My question is if I can manage this without using CLI, and just simply edit the file locally to make it synchronize - especially for plain text variables
I guess I'm able to answer my own question by finally learning what is "automation api" 🙂 https://www.pulumi.com/docs/reference/pkg/python/pulumi/#automation-api-1