nebari: Github action `Terraform validate` failing: An argument named "load_config_file" is not expected here.

I tried a minor tweak to my config today (just added a single package from conda-forge to one of my environments) and the github action failed on “Terraform validate” with “An argument named “load_config_file” is not expected here.” Here’s the full traceback:

Run hashicorp/terraform-github-actions@master
/usr/bin/docker run --name c2e63a7bbb0d4994b867bdbc75362b23_4c8736 --label 442333 --workdir /github/workspace --rm -e GITHUB_TOKEN -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_DEFAULT_REGION -e INPUT_TF_ACTIONS_VERSION -e INPUT_TF_ACTIONS_SUBCOMMAND -e INPUT_TF_ACTIONS_WORKING_DIR -e INPUT_TF_ACTIONS_COMMENT -e INPUT_TF_ACTIONS_CLI_CREDENTIALS_HOSTNAME -e INPUT_TF_ACTIONS_CLI_CREDENTIALS_TOKEN -e INPUT_TF_ACTIONS_FMT_WRITE -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/qhub/qhub":"/github/workspace" 442333:c2e63a7bbb0d4994b867bdbc75362b23
Downloading Terraform v0.13.4
Successfully downloaded Terraform v0.13.4
Unzipping Terraform v0.13.4
Successfully unzipped Terraform v0.13.4
validate: info: validating Terraform configuration in infrastructure
validate: error: failed to validate Terraform configuration in infrastructure

Warning: Interpolation-only expressions are deprecated

  on .terraform/modules/qhub/modules/kubernetes/services/meta/qhub/main.tf line 16, in module "kubernetes-jupyterhub":
  16:           "${var.general-node-group.key}" = var.general-node-group.value

Terraform 0.11 and earlier required all non-constant expressions to be
provided via interpolation syntax, but this pattern is now deprecated. To
silence this warning, remove the "${ sequence from the start and the }"
sequence from the end of this expression, leaving just the inner expression.

Template interpolation syntax is still used to construct strings from
expressions when the template includes multiple interpolation sequences or a
mixture of literal strings and interpolations. This deprecation applies only
to templates that consist entirely of a single interpolation sequence.

(and 3 more similar warnings elsewhere)


Error: Unsupported argument

  on kubernetes.tf line 2, in provider "kubernetes":
   2:   load_config_file       = false

An argument named "load_config_file" is not expected here.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (19 by maintainers)

Most upvoted comments

Hey @rsignell-usgs, thanks for reporting this. This is a bug we found and has been fixed on this PR. We are currently adjusting a few more details to launch a new release with that fix and some other changes.

Chat soon.