Skip to content

"filename_effective" is not a valid template control keyword. #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Overbryd opened this issue Sep 11, 2019 · 3 comments
Open

"filename_effective" is not a valid template control keyword. #13

Overbryd opened this issue Sep 11, 2019 · 3 comments

Comments

@Overbryd
Copy link

Overbryd commented Sep 11, 2019

There are some problems with the configuration, described below.

The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.

Error: Invalid template control keyword

  on .terraform/modules/elasticsearch_cleanup.artifact/main.tf line 2, in data "external" "curl":
   2:   program = ["curl", "${var.curl_arguments}", "--write-out", "{\"success\": \"true\", \"filename_effective\": \"%{filename_effective}\"}", "-o", "${local.output_file}", "${local.url}"]

"filename_effective" is not a valid template control keyword.


Error: Unsuitable value type

  on .terraform/modules/elasticsearch_cleanup.artifact/variables.tf line 11, in variable "module_path":
  11:   description = "Local path to the terraform module; e.g. `${path.module}`"

Unsuitable value: value must be known


Error: Variables not allowed

  on .terraform/modules/elasticsearch_cleanup.artifact/variables.tf line 11, in variable "module_path":
  11:   description = "Local path to the terraform module; e.g. `${path.module}`"

Variables may not be used here.

After a clean terraform init. I am using ?ref=tags/0.4.0

@caevv
Copy link

caevv commented Mar 11, 2020

+1

@Overbryd
Copy link
Author

Overbryd commented Mar 11, 2020 via email

@osterman
Copy link
Member

osterman commented Jun 9, 2020

"filename_effective" is not a valid template control keyword.

@Overbryd I'm not sure the cause of this. Could it be the version of curl on your system? The parameter we use is documented here:

https://ec.haxx.se/usingcurl/usingcurl-verbose/usingcurl-writeout#available-write-out-variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants