From a52d5c8ba665f94b8e356a797ad3102181541299 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Fri, 3 May 2024 14:18:33 +0200 Subject: [PATCH] terraform module --- README.md | 8 ++++++++ tf.mk | 15 +++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 tf.mk diff --git a/README.md b/README.md index ba41aee..dc4693c 100644 --- a/README.md +++ b/README.md @@ -133,3 +133,11 @@ systemd. (TBD) ##### apt APT deployment on debian-like distributions. + +##### tf + +Deploy via Terraform. Config is mostly done with terraform. + +`TF_FLAGS`: What you think. + +`TF_TARGET`: Limits deployment to `TF_TARGET`. diff --git a/tf.mk b/tf.mk new file mode 100644 index 0000000..b06e579 --- /dev/null +++ b/tf.mk @@ -0,0 +1,15 @@ +MANDATORY-tf = +# tf +# +# deploys via tf apply +# +start-tf: +ifdef TF_TARGET + terraform apply $(TF_FLAGS) -t $(TF_TARGET) +else + terraform apply $(TF_FLAGS) +endif + + +pull-tf: +# nop