Skip to content
New issue

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

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

Already on GitHub? # to your account

terraform plan errors #2

Open
alrf opened this issue Jan 7, 2020 · 0 comments
Open

terraform plan errors #2

alrf opened this issue Jan 7, 2020 · 0 comments

Comments

@alrf
Copy link

alrf commented Jan 7, 2020

My terraform.tfvars is:

enable_amazon = true
nodes = 3
aws_profile = "default"
enable_microsoft = false

TF version:

~/terraform-kubernetes-multi-cloud$ terraform version
Terraform v0.12.18
+ provider.alicloud v1.68.0
+ provider.aws v2.43.0
+ provider.azurerm v1.39.0
+ provider.digitalocean v1.12.0
+ provider.external v1.2.0
+ provider.google v3.3.0
+ provider.http v1.1.1
+ provider.local v1.4.0
+ provider.null v2.1.2
+ provider.oci v3.56.0
+ provider.random v2.2.1
+ provider.template v2.1.2
~/terraform-kubernetes-multi-cloud$

After terraform init I'm getting:

~/terraform-kubernetes-multi-cloud$ terraform plan

Warning: "agent_pool_profile": [DEPRECATED] This has been replaced by `default_node_pool` and will be removed in version 2.0 of the AzureRM Provider

  on .terraform/modules/microsoft/hajowieland-terraform-azurerm-k8s-a3499e1/main.tf line 45, in resource "azurerm_kubernetes_cluster" "aks":
  45: resource "azurerm_kubernetes_cluster" "aks" {

Error: Error in function call

  on .terraform/modules/google/hajowieland-terraform-google-k8s-82c6fb4/provider.tf line 3, in provider "google":
   3:   credentials = file("account.json")

Call to function "file" failed: no file exists at account.json.

~/terraform-kubernetes-multi-cloud$

After I commented module "google" { and resource "local_file" "kubeconfiggke" { in main.tf:

~/terraform-kubernetes-multi-cloud$ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

module.amazon.data.http.workstation-external-ip[0]: Refreshing state...
module.amazon.data.aws_region.current[0]: Refreshing state...
module.amazon.data.aws_availability_zones.available[0]: Refreshing state...

Warning: "agent_pool_profile": [DEPRECATED] This has been replaced by `default_node_pool` and will be removed in version 2.0 of the AzureRM Provider

  on .terraform/modules/microsoft/hajowieland-terraform-azurerm-k8s-a3499e1/main.tf line 45, in resource "azurerm_kubernetes_cluster" "aks":
  45: resource "azurerm_kubernetes_cluster" "aks" {

Error: can not create client, bad configuration: did not find a proper configuration for tenancy

  on <empty> line 0:
  (source code not available)

Error: Error building AzureRM Client: Azure CLI Authorization Profile was not found. Please ensure the Azure CLI is installed and then log-in with `az login`.

  on .terraform/modules/microsoft/hajowieland-terraform-azurerm-k8s-a3499e1/provider.tf line 1, in provider "azurerm":
   1: provider "azurerm" {

~/terraform-kubernetes-multi-cloud$
pjferrell added a commit to pjferrell/terraform-kubernetes-multi-cloud that referenced this issue Jun 15, 2022
enable experimental terraform optional attribute support
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant