langstream icon indicating copy to clipboard operation
langstream copied to clipboard

Configure default infrastructure and secrets file for a CLI profile

Open cdbartholomew opened this issue 1 year ago • 1 comments

I often use a different CLI profile for each LangStream environment, local dev, remote test, and remote production. In most cases, I use a different infrastructure and secrets file for each of those profiles with a name like secrets-prod.yaml. It would be handy to be able to associate a default infra and secrets file with the CLI profile I am using. Then I would be able to deploy/update my app without having to specify those options. Of course, I would want to be able to override the default with the command line options.

A few thoughts on how this might work:

  • A set command that accepts an infra/secrets file and saves it as part of my profile
  • A get command to retrieve the default files so I can view them or save them as a file
  • An edit command would let me edit the default file in place (nice to have)
  • A mechanism to specify the file in base64 encoding so it can be completely specified using a command line (for automation tooling, nice to have)

cdbartholomew avatar Oct 06 '23 17:10 cdbartholomew

Makes sense to me

eolivelli avatar Oct 06 '23 19:10 eolivelli