I am curious; Is there value in using Octavia CLI ...
# help-api-cli-orchestration
d
I am curious; Is there value in using Octavia CLI to export workspace JSONS to check into version control if we’re deploying Airbyte with an external app DB?
a
Do you snapshot your external DB? Do you want the ability to rebuild things from scratch if you have to? It's the latter that drove us to octavia - we can bring up a completely fresh database and a new airbyte deployment, and get to where things are now in minutes, sans state of course (so, we'd just need to reset our connections and do new full syncs). Of course not something we plan to do frequently, but it's nice to know that we can.
d
Good answer, thanks @Adam Bloom. So, are you exporting the JSON and checking them into version control? Are you importing your configs into Airbyte via Octavia as well?
I’m new to the CLI, curious how you manage the exporting of current workspace and how you apply them.
a
No, not exporting anything. Rather, octavia yamls are the source that we load into airbyte. They, along with our encrypted secrets via sops, are checked into version control.
We only rarely make changes to these configurations, so our workflow may not make sense for a team that is frequently making modifications to airbyte configurations (or, where those who are responsible for that are not CLI savvy)
d
Got it, I guess I’m confused where these Octavia YAMLs come from. Our Airbyte instance has two connections already setup (in both dev and prod), but when
octavia get connection
, etc, it only generates JSON
It looks like the YAML is produced by way of a
generate
command, which seems to be for setting up new connections, etc
But it sounds like you setup your connections via Octavia
instead of the UI
Oh, I see now that
octavia import all
does that
a
yeah,
octavia import
will generate them. I did this before that command existed, so a combo of
octavia generate
and some trickery to convince octavia that these were existing resources and not new ones
a
Thank you very much @Adam Bloom for these insights, I’m glad you are using it for this kind of use case. @Dustin Shapiro do you have additional questions?
d
Nah, I think he covered it! Thanks again