A simple terraform module that can rotate an API key for an Amazon Managed Grafana instance.
| Name | Version |
|---|---|
| terraform | >= 1.7 |
| archive | ~> 2.0 |
| aws | ~> 5.0 |
| null | ~> 3.0 |
| Name | Version |
|---|---|
| archive | ~> 2.0 |
| aws | ~> 5.0 |
| null | ~> 3.0 |
No modules.
| Name | Type |
|---|---|
| aws_iam_role.api_key_rotation_lambda_role | resource |
| aws_iam_role_policy.api_key_rotation_lambda_policy | resource |
| aws_lambda_function.api_key_rotation | resource |
| aws_lambda_permission.secrets_manager_api_key_rotation | resource |
| aws_secretsmanager_secret.api_key | resource |
| aws_secretsmanager_secret_rotation.api_key | resource |
| null_resource.api_key_delay | resource |
| archive_file.api_key_lambda | data source |
| aws_caller_identity.current | data source |
| aws_iam_policy_document.api_key_rotation_lambda_assume_role_policy_document | data source |
| aws_iam_policy_document.api_key_rotation_lambda_execution_role_policy_document | data source |
| aws_region.current | data source |
| aws_secretsmanager_secret.api_key | data source |
| aws_secretsmanager_secret_version.api_key | data source |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| grafana_workspace_id | The ID of the Grafana workspace to manage | string |
n/a | yes |
| key_role | Set the Role for the API key. This can be ADMIN, EDITOR or VIEWER. Default is ADMIN. | string |
"ADMIN" |
no |
| name | Named identifier for the workspace and related resources | string |
n/a | yes |
| Name | Description |
|---|---|
| workspace_api_key | The API key for the AWS Managed Grafana workspace |
