si3mshady / aws_managed_grafana_workspace_dashboard

This repository contains the source code to build an Amazon Managed Grafana workspace and dashboard using Terraform. The process is automated using Azure Pipelines.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

Build Status Imange

Motivation

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

Pre-Requisites

  • 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.

Algorithm

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.

Folder Structure:

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.

License

This code is released under the Unlincse License. See LICENSE.

About

This repository contains the source code to build an Amazon Managed Grafana workspace and dashboard using Terraform. The process is automated using Azure Pipelines.

License:The Unlicense


Languages

Language:HCL 80.1%Language:PowerShell 19.9%