Skip to content
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

An argument named "load_config_file" is not expected here error #56

Open
bparinas opened this issue Mar 21, 2021 · 1 comment
Open

An argument named "load_config_file" is not expected here error #56

bparinas opened this issue Mar 21, 2021 · 1 comment

Comments

@bparinas
Copy link

bparinas commented Mar 21, 2021

terraform apply error using the main.tf:

# terraform init
Initializing modules...
- backup in modules/backup
- cluster in modules/cluster
- dns in modules/dns
- jx in modules/jx
Downloading github.com/jenkins-x/terraform-jx-health?ref=main for jx.jx-health...
- jx.jx-health in .terraform/modules/jx.jx-health
- registry in modules/registry
- secretstorage in modules/secretstorage
- vnet in modules/vnet
- workload_identity in modules/workloadidentity

Initializing the backend...

Initializing provider plugins...
- Finding hashicorp/azuread versions matching ">= 1.0.0"...
- Finding hashicorp/kubernetes versions matching ">= 1.13.3"...
- Finding hashicorp/helm versions matching ">= 1.3.2"...
- Finding hashicorp/random versions matching ">= 3.0.0"...
- Finding hashicorp/null versions matching ">= 3.0.0"...
- Finding hashicorp/azurerm versions matching ">= 2.34.0"...
- Installing hashicorp/azuread v1.4.0...
- Installed hashicorp/azuread v1.4.0 (signed by HashiCorp)
- Installing hashicorp/kubernetes v2.0.3...
- Installed hashicorp/kubernetes v2.0.3 (signed by HashiCorp)
- Installing hashicorp/helm v2.0.3...
- Installed hashicorp/helm v2.0.3 (signed by HashiCorp)
- Installing hashicorp/random v3.1.0...
- Installed hashicorp/random v3.1.0 (signed by HashiCorp)
- Installing hashicorp/null v3.1.0...
- Installed hashicorp/null v3.1.0 (signed by HashiCorp)
- Installing hashicorp/azurerm v2.52.0...
- Installed hashicorp/azurerm v2.52.0 (signed by HashiCorp)

Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.


# terraform apply

Warning: Attribute is deprecated

  on modules/backup/main.tf line 7, in resource "azuread_application" "velero":
   7:   name  = "velero-${var.cluster_id}"

This property has been renamed to `display_name` and will be removed in
version 2.0 of this provider.


Error: Unsupported argument

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

An argument named "load_config_file" is not expected here.


Error: Unsupported argument

  on main.tf line 53, in provider "helm":
  53:     load_config_file = false

An argument named "load_config_file" is not expected here.

@gui-sousa
Copy link

load_config_file

Has been discontinued, here you find the new options according to the provider

GoogleCloudPlatform/solutions-terraform-jenkins-gitops#38
https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs

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

2 participants