Implement deploy command (with embedded files)
This is an alternative version of !46 (closed) where the .tf files are embedded in the binary using https://pkg.go.dev/embed
The files are written to the .runway
subfolder relative to where runwayctl
command was invoked.
An example of how the .runway
folder ends up looking after a successful deploy
invokation in a service's project:
model-evaluator (main*?) $ ls -a .runway
. .terraform env-production.yml runway.tf
.. .terraform.lock.hcl env-staging.yml runway.yml
Here runway.tf
is the concatenation of all the files on reconciler/
. This allows us to not have to worry
about shipping .tf files with the binary, but does add files to the user's .runway
folder. We could suggest
to project maintainers to add the following to their .gitignore
:
.runway/.terraform
.runway/.terraform.lock.hcl
.runway/runway.tf
Part of team#33 (closed)
Edited by Alejandro Rodríguez