![]() terraform plan is run as a bash command in the GitHub runner to preview the changes that Terraform will make.If the Terraform configuration files are not properly formatted, the workflow will fail at this step. terraform fmt -check is run as a bash command in the GitHub runner to check if the Terraform configuration files are properly formatted.terraform init is run as a bash command in the GitHub runner to initialize a working directory containing Terraform configuration files.The Terraform CLI is installed on the GitHub runner using the action.Using the action, The GitHub repository is checked out so that the GitHub workflow can access it.This GitHub workflow consists of the following steps: Resource "grafana_dashboard" "elasticsearch" GitHub workflow for managing dashboards using Terraform This Terraform configuration configures the Grafana provider to provide necessary authentication when creating folders and dashboards in the Grafana instance.Ĭreate a service account and token in the Grafana instance by following these steps:Ĭreate a file named main.tf in the Git root directory and add the following code block: Terraform configuration for Grafana provider ![]() For this guide, we will create three sub-folders named elasticsearch, influxdb, and aws.Īdd dashboard JSON source code to each of the three sub-folders. In the dashboards folder create three sub-folders. In your GitHub repository, create a folder named dashboards in the root directory. ![]() You can use different dashboards according to your configured data sources.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |