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

Allow dependent modules to specify Grafana version #218

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion aws/grafana-workspace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ module "grafana_workspace" {
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_admin_groups"></a> [admin\_groups](#input\_admin\_groups) | IAM Identity Center groups with administrator access to Grafana | `list(string)` | `[]` | no |
| <a name="input_authentication_providers"></a> [authentication\_providers](#input\_authentication\_providers) | Providers used to sign in to Grafana | `list(string)` | <pre>[<br> "AWS_SSO"<br>]</pre> | no |
| <a name="input_authentication_providers"></a> [authentication\_providers](#input\_authentication\_providers) | Providers used to sign in to Grafana | `list(string)` | <pre>[<br/> "AWS_SSO"<br/>]</pre> | no |
| <a name="input_editor_groups"></a> [editor\_groups](#input\_editor\_groups) | IAM Identity Center groups with edit access to Grafana | `list(string)` | `[]` | no |
| <a name="input_grafana_api_key_name"></a> [grafana\_api\_key\_name](#input\_grafana\_api\_key\_name) | Name for the Grafana API key used by Terraform | `string` | `"terraform"` | no |
| <a name="input_grafana_version"></a> [grafana\_version](#input\_grafana\_version) | Version of AWS Managed Grafana to use (e.g., '11.3.0') | `string` | `null` | no |
| <a name="input_iam_role_name"></a> [iam\_role\_name](#input\_iam\_role\_name) | Override the name of the service role for Grafana | `string` | `null` | no |
| <a name="input_name"></a> [name](#input\_name) | Name of this Grafana workspace | `string` | `"Grafana"` | no |
| <a name="input_viewer_groups"></a> [viewer\_groups](#input\_viewer\_groups) | IAM Identity Center groups with view access to Grafana | `list(string)` | `[]` | no |
Expand Down
1 change: 1 addition & 0 deletions aws/grafana-workspace/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resource "aws_grafana_workspace" "this" {
notification_destinations = ["SNS"]
permission_type = "CUSTOMER_MANAGED"
role_arn = aws_iam_role.grafana.arn
grafana_version = var.grafana_version

configuration = jsonencode({
unifiedAlerting = { enabled = true }
Expand Down
6 changes: 6 additions & 0 deletions aws/grafana-workspace/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ variable "viewer_groups" {
type = list(string)
default = []
}

variable "grafana_version" {
description = "Specifies the version of Grafana to support in the workspace."
type = string
default = null
}