Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/drfaust92/terraform-grafana-stackdriver-module

Terraform module which creates a Grafana Stackdriver data source with a minimal GCP service account.
https://github.com/drfaust92/terraform-grafana-stackdriver-module

gcp google grafana terraform

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# Terraform Grafana Stackdriver Module

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

## Usage

```terraform
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 = ""

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

```

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.13 |

## Providers

| Name | Version |
|------|---------|
| [google](#provider\_google) | n/a |
| [grafana](#provider\_grafana) | n/a |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [google_project_iam_member.data_source](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/project_iam_member) | resource |
| [google_service_account.data_source](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/service_account) | resource |
| [google_service_account_key.data_source](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/service_account_key) | resource |
| [grafana_data_source.data_source](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/data_source) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [project](#input\_project) | Google project to create resources in | `string` | n/a | yes |
| [service\_account\_id](#input\_service\_account\_id) | GCP service account name | `string` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| [grafana\_data\_source\_id](#output\_grafana\_data\_source\_id) | Grafana data source ID |
| [service\_account\_email](#output\_service\_account\_email) | Google service account email |
| [service\_account\_id](#output\_service\_account\_id) | Google service account ID |
| [service\_account\_name](#output\_service\_account\_name) | Google service account name |