brew install terraform
terraform init
Note -- We probably used chronotf
somewhere in this setup, but not sure.
Terraform files have resources. Resources are defined, and then terraform picks it up. For example -- A dashboard is a resource. Each dashboard has number of thigns that need to be added.
uid
is unique to each dashboard. CHange it when copy/pasting, otherwiseterraform apply
will fail.- Change the name and id of the resource. This has to be unique.
bucket
is probably an older artifact- Dashboard is made of panels. Panels is a JSON array.
- The dashboard JSON has to go between
EOF
tags. This is becausemain.tf
is a HCL language file. However, anything betweenEOF
tags makes it clear that it is JSON and not HCL.
terraform apply