Skip to content

A simple terraform module that can rotate an API key for an Amazon Managed Grafana instance.

Notifications You must be signed in to change notification settings

dovetailworld/terraform-aws-managed-grafana-api-key-rotation-module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon Managed Grafana API Key Rotation

A simple terraform module that can rotate an API key for an Amazon Managed Grafana instance.

Architecture Diagram

Requirements

Name Version
terraform >= 1.7
archive ~> 2.0
aws ~> 5.0
null ~> 3.0

Providers

Name Version
archive ~> 2.0
aws ~> 5.0
null ~> 3.0

Modules

No modules.

Resources

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

Inputs

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

Outputs

Name Description
workspace_api_key The API key for the AWS Managed Grafana workspace

About

A simple terraform module that can rotate an API key for an Amazon Managed Grafana instance.

Resources

Stars

Watchers

Forks

Languages

  • HCL 72.7%
  • Python 27.3%