Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/drfaust92/terraform-grafana-stackdriver-module
- Owner: DrFaust92
- Created: 2021-04-25T19:49:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-07T18:04:36.000Z (over 3 years ago)
- Last Synced: 2024-10-06T22:21:22.611Z (3 months ago)
- Topics: gcp, google, grafana, terraform
- Language: HCL
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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 |