https://pulumi.com logo
Title
g

great-sunset-355

06/22/2021, 7:38 AM
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

steep-sunset-89396

06/22/2021, 9:07 AM
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

great-sunset-355

06/22/2021, 9:52 AM
I mean if I have a structure like this
config:
  project:database:
    app:
      password:
        secure: AAABAOeZOoIfFiQ+2w94NwR7TVMcqbib8cM3ihg5y6rg/Dgavu6J
      user: app
I need to run
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