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

Issue initialising Grafana provider #148

Closed
davilag opened this issue Dec 17, 2020 · 1 comment
Closed

Issue initialising Grafana provider #148

davilag opened this issue Dec 17, 2020 · 1 comment

Comments

@davilag
Copy link

davilag commented Dec 17, 2020

Terraform Version

Terraform v0.14.2

Affected Resource(s)

I don't seem to be able to use any resource. I have tried with:

  • grafana_user
  • grafana_data_source

Terraform Configuration Files

provider "grafana" {
  url  = "https://grafana.${var.domain}"
  auth = "admin:${var.grafana_password}"
}

terraform {
  required_providers {
    grafana = {
      source  = "grafana/grafana"
      version = ">= 1.7.0"
    }
  }
}

resource "grafana_user" "staff" {
  email    = "staff.name@example.com"
  name     = "Staff Name"
  login    = "staff"
  password = "my-password"
}

Debug Output

https://gist.github.com/davilag/6df397657c5e70189f1e74942dfaeaf1

Expected Behavior

Terraform to create the user in my Grafana instance

Actual Behavior

Terraform not using the grafana/grafana provider and instead trying to get the hashicorp/grafana provider which doesn't exist.

Steps to Reproduce

  1. terraform init -recreate

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

@davilag
Copy link
Author

davilag commented Dec 17, 2020

The resource was inside a module so I had to define the provider within the module

@davilag davilag closed this as completed Dec 17, 2020
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

1 participant