dvc machine: implement initial terraform support (#6462)

* tpi: add naive terraform-provider-iterative wrapper

* executor: add naive backend/terraform wrapper

* setup: add dvc[terraform] install extras

* config: add feature.executor feature flag

* fix named executor config sections

* executor: add poc add/modify/remove/init/destroy commands

* relax python-terraform requirement

* ci: install terraform extras

* tpi: support .tf.json format

* s/executor/machine

* terraform: use separate dirs per machine

* s/init/create/

* reserve local machine name

* add initial ssh skeleton

* add initial machine unit tests

* add initial machine command tests

* add tests for add/remove

* enable feature by default in test env

* close temp pemfile object so it can be used on windows

* cleanup pemfile syntax
This commit is contained in:
Peter Rowlands (변기호)
2021-08-27 12:46:24 +03:00
committed by GitHub
parent 4382b80d3b
commit 4ee98299ee
17 changed files with 973 additions and 14 deletions
+3
View File
@@ -112,6 +112,8 @@ webdav = ["webdav4>=0.9.0"]
ssh_gssapi = ["sshfs[gssapi]>=2021.7.1"]
all_remotes = gs + s3 + azure + ssh + oss + gdrive + hdfs + webhdfs + webdav
terraform = ["python-terraform>=0.10.1", "jinja2>=2.0.0"]
tests_requirements = (
Path("test_requirements.txt").read_text().strip().splitlines()
)
@@ -138,6 +140,7 @@ setup(
"hdfs": hdfs,
"webhdfs": webhdfs,
"webdav": webdav,
"terraform": terraform,
"tests": tests_requirements,
},
keywords="data-science data-version-control machine-learning git"