In this repository I have the source code to build an Amazon Managed Grafana workspace and dashboard using Terraform. The process is automated using Azure Pipelines.
If you are interested in knowing and understanding more about the code please visit my notes.
Create Amazon Managed Grafana Workspace using Terraform
Create Amazon Managed Grafana Dashboard using Terraform
- To create an Amazon Managed Grafana workspace enable AWS organizations and AWS Indentity Center in your AWS account.
- Create an AWS IAM user who can manage the resources this Terraform stack provisions.
Deploying the Amazon Managed Grafana Workspace and Dashboard infrastructure using Terraform in a CI pipeline environment involves four high level steps:
(i) build the workspace using the Terraform aws
provider,
(ii) generate an API key,
(iii) use the API key in the Terraform grafana
provider and create dashboard/s, and finally
(iv) delete the API key.
There are two distinct set of projects hosted in this repository with one depending on the other.
The amg_workspace
folder hosts the source code to provision an Amazon Managed Grafana workspace using Terraform. The AWS IAM policy files required to provision these resources are also available to adhere to principle of least priviledge. It also contains the azure pipelines yaml file to automate the process.
The amg_dashboard
folder hosts the source code to provision a dashboard in the Amazon Managed Grafana workspace and hence it depends on the workspace being available. Here too, the azure pipelines yaml file is available to automate the process.
This code is released under the Unlincse License. See LICENSE.