diff --git a/aws/grafana-workspace/README.md b/aws/grafana-workspace/README.md index 5be7bed7..6fa28156 100644 --- a/aws/grafana-workspace/README.md +++ b/aws/grafana-workspace/README.md @@ -72,9 +72,10 @@ module "grafana_workspace" { | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [admin\_groups](#input\_admin\_groups) | IAM Identity Center groups with administrator access to Grafana | `list(string)` | `[]` | no | -| [authentication\_providers](#input\_authentication\_providers) | Providers used to sign in to Grafana | `list(string)` |
[| no | +| [authentication\_providers](#input\_authentication\_providers) | Providers used to sign in to Grafana | `list(string)` |
"AWS_SSO"
]
[| no | | [editor\_groups](#input\_editor\_groups) | IAM Identity Center groups with edit access to Grafana | `list(string)` | `[]` | no | | [grafana\_api\_key\_name](#input\_grafana\_api\_key\_name) | Name for the Grafana API key used by Terraform | `string` | `"terraform"` | no | +| [grafana\_version](#input\_grafana\_version) | Version of AWS Managed Grafana to use (e.g., '11.3.0') | `string` | `null` | no | | [iam\_role\_name](#input\_iam\_role\_name) | Override the name of the service role for Grafana | `string` | `null` | no | | [name](#input\_name) | Name of this Grafana workspace | `string` | `"Grafana"` | no | | [viewer\_groups](#input\_viewer\_groups) | IAM Identity Center groups with view access to Grafana | `list(string)` | `[]` | no | diff --git a/aws/grafana-workspace/main.tf b/aws/grafana-workspace/main.tf index 20438e77..74dd894f 100644 --- a/aws/grafana-workspace/main.tf +++ b/aws/grafana-workspace/main.tf @@ -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 } diff --git a/aws/grafana-workspace/variables.tf b/aws/grafana-workspace/variables.tf index 3711fcb8..c2e00b0f 100644 --- a/aws/grafana-workspace/variables.tf +++ b/aws/grafana-workspace/variables.tf @@ -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 +}
"AWS_SSO"
]