From 39ffe77e052188b5185dae042f488134f31fc572 Mon Sep 17 00:00:00 2001 From: badra001 Date: Thu, 13 Oct 2022 09:54:32 -0400 Subject: [PATCH] update --- examples/efk/.tf-control | 4 ++++ examples/efk/.tf-control.tfrc | 23 +++++++++++++++++++++++ examples/efk/README.md | 11 +++++++++++ 3 files changed, 38 insertions(+) create mode 100644 examples/efk/.tf-control create mode 100644 examples/efk/.tf-control.tfrc diff --git a/examples/efk/.tf-control b/examples/efk/.tf-control new file mode 100644 index 0000000..2420f8d --- /dev/null +++ b/examples/efk/.tf-control @@ -0,0 +1,4 @@ +TFCOMMAND="terraform_latest" +#TFCOMMAND="terraform_0.13.7" +#TFCOMMAND="terraform_0.14.11" +#TF_CLI_CONFIG_FILE=.tf-control.tfrc diff --git a/examples/efk/.tf-control.tfrc b/examples/efk/.tf-control.tfrc new file mode 100644 index 0000000..d4b0b15 --- /dev/null +++ b/examples/efk/.tf-control.tfrc @@ -0,0 +1,23 @@ +# https://www.terraform.io/docs/cli/config/config-file.html + +plugin_cache_dir = "/data/terraform/terraform.d/plugin-cache" +#disable_checkpoint = true + +provider_installation { +# filesystem_mirror { +# path = "/apps/terraform/terraform.d/providers" +# include = [ "*/*/*" ] +# } + filesystem_mirror { + path = "/data/terraform/terraform.d/providers" + include = [ "*/*/*" ] + } +# filesystem_mirror { +# path = "/apps/terraform/terraform.d/providers" +# include = [ "external.terraform.census.gov/*/*" ] +# } + direct { + include = [ "*/*/*" ] + } +} + diff --git a/examples/efk/README.md b/examples/efk/README.md index 5f1d13e..242bb53 100644 --- a/examples/efk/README.md +++ b/examples/efk/README.md @@ -4,3 +4,14 @@ rsync this directory into it tf-run apply set NO_PROXY to include the EKS API endpoint tf-run apply N # continue from where left off + +This requires runnign under TF 1.x. + +If the repo is already configured for TF 1.x, you do not need the .tf-control and .tf-control.rc files +in the efk/ directory. To find out, do this + +```script +tf-cli version +``` + +If it reports 0.12.31, copy the .tf-control* files into the common-services/efk