Skip to content

Terraform module which creates a Grafana Stackdriver data source with a minimal GCP service account.

Notifications You must be signed in to change notification settings

DrFaust92/terraform-grafana-stackdriver-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Grafana Stackdriver Module

This module provisions a Grafana stackdriver(GCP) data source and a GCP Service Account with minimal permissions.

Usage

provider "grafana" {
  url  = "SOME-URL"
  auth = "SOME-TOKEN" // dont keep this in your version control in clear text
}

provider "google" {
  project = "SOME-PROJECT"
  region  = "us-central1"
}


module "data_source" {
  source  = "DrFaust92/stackdriver-module/grafana"
  version = "<VERSION>"

  project            = "some-gcp-project"
  service_account_id = "some-account-id"
}

Requirements

Name Version
terraform >= 0.13

Providers

Name Version
google n/a
grafana n/a

Modules

No modules.

Resources

Name Type
google_project_iam_member.data_source resource
google_service_account.data_source resource
google_service_account_key.data_source resource
grafana_data_source.data_source resource

Inputs

Name Description Type Default Required
project Google project to create resources in string n/a yes
service_account_id GCP service account name string n/a yes

Outputs

Name Description
grafana_data_source_id Grafana data source ID
service_account_email Google service account email
service_account_id Google service account ID
service_account_name Google service account name

About

Terraform module which creates a Grafana Stackdriver data source with a minimal GCP service account.

Topics

Resources

Stars

Watchers

Forks

Languages