Closed aslilac closed 1 month ago
The purpose of this is not widely known, so just dropping a note.
The output of terraform plan
is going to be used to support dynamic parameters. Specifically, we are keeping the raw outputs (rather than preparsing) as an input to the new parameter engine.
The phasing in of this new feature is that it will live alongside the existing flow for some time. So this new table will be write-only
for production instances until we get a bit further with the parameter engine experiment.
Adds plumbing to persist terraform plan data from template import provisioner builds.
After some deliberation, I went with storing what I have called the
cached_plan
in a separate table because these values are incredibly large, thetemplate_versions
table already has a lot of columns, and a lot of queries usetemplate_version.*
to get those many columns. Accidentally including thecached_plan
column in those queries would be very undesirable, and this value mostly exists for future use on the backend. I don't think this is the sort of thing we would ever actually want to send to a client, except maybe a page for debugging the current state.This also means that we can track it's
updated_at
time separately quite easily, since we're planning on letting it be "refreshed".Closes https://github.com/coder/coder/issues/17050