Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/liatrio/terraform-grafana-cloud-config-module

Terraform Module for Grafana Cloud Configuration
https://github.com/liatrio/terraform-grafana-cloud-config-module

Last synced: 8 days ago
JSON representation

Terraform Module for Grafana Cloud Configuration

Awesome Lists containing this project

README

        

# terraform-grafana-config-module

## Terraform Documentation

## Requirements

| Name | Version |
|------|---------|
| [aws](#requirement\_aws) | >= 5.7.0 |
| [grafana](#requirement\_grafana) | 2.1.0 |

## Providers

| Name | Version |
|------|---------|
| [aws](#provider\_aws) | >= 5.7.0 |
| [grafana](#provider\_grafana) | 2.1.0 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [aws_grafana_workspace_api_key.key](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/grafana_workspace_api_key) | resource |
| [aws_prometheus_rule_group_namespace.alarm_rule](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/prometheus_rule_group_namespace) | resource |
| [grafana_dashboard.dashboard_from_file](https://registry.terraform.io/providers/grafana/grafana/2.1.0/docs/resources/dashboard) | resource |
| [grafana_data_source.data_source_from_map](https://registry.terraform.io/providers/grafana/grafana/2.1.0/docs/resources/data_source) | resource |
| [grafana_folder.dashboard_folders](https://registry.terraform.io/providers/grafana/grafana/2.1.0/docs/resources/folder) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [alarm\_rules](#input\_alarm\_rules) | The contents of the alarm rules file. | `string` | n/a | yes |
| [aws\_region](#input\_aws\_region) | Contains the AWS Region that Grafana is running in. | `string` | `"us-east-1"` | no |
| [dashboard\_configs\_folder](#input\_dashboard\_configs\_folder) | The path to the dashboards folder where the configuration files are located. | `string` | n/a | yes |
| [data\_source\_map](#input\_data\_source\_map) | A list of maps representing datasource information. Each map defines a data source with its type, name, and url. | `list(map(string))` |

[
{
"data_source_name": "CloudName1",
"data_source_type": "cloudwatch",
"data_source_url": "https://cloudwatch.amazonaws.com"
},
{
"data_source_name": "PromName1",
"data_source_type": "prometheus",
"data_source_url": "https://prometheus.amazonaws.com"
},
{
"data_source_name": "PromName2",
"data_source_type": "prometheus",
"data_source_url": "https://prometheus2.amazonaws.com"
}
]
| no |
| [grafana\_url](#input\_grafana\_url) | The url to your Grafana instance. | `string` | n/a | yes |
| [grafana\_workspace\_id](#input\_grafana\_workspace\_id) | The workspace ID of the grafana instance you wish to modify. | `string` | n/a | yes |
| [prometheus\_workspace\_id](#input\_prometheus\_workspace\_id) | The workspace ID of the prometheus instance you wish to modify. | `string` | n/a | yes |

## Outputs

No outputs.