https://github.com/mdb/terraform-advanced-logic-demo
A demo Terraform configuration illustrating a few semi-advanced Terraform capabilities, namely the expression of moderately complex logic.
https://github.com/mdb/terraform-advanced-logic-demo
reference-implementation terraform
Last synced: 4 months ago
JSON representation
A demo Terraform configuration illustrating a few semi-advanced Terraform capabilities, namely the expression of moderately complex logic.
- Host: GitHub
- URL: https://github.com/mdb/terraform-advanced-logic-demo
- Owner: mdb
- Created: 2022-11-11T12:45:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-16T19:34:45.000Z (over 2 years ago)
- Last Synced: 2025-01-14T16:36:26.003Z (5 months ago)
- Topics: reference-implementation, terraform
- Language: HCL
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/mdb/terraform-advanced-logic-demo/actions/workflows/main.yaml)
# terraform-advanced-logic-demo
A demo Terraform configuration illustrating a few semi-advanced Terraform capabilities, namely the expression of moderately complex logic.
`terraform-advanced-logic-demo` is the reference example accompanying the [Advanced Terraform Logic](https://mikeball.info/blog/advanced-terraform-logic/) blog post.
## Try it out
The Terraform configuration assumes the existence of a `GITHUB_TOKEN` environment variable whose value is an authorized [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).
The Terraform configuration also assumes a local Grafana instance is running. To start a local Grafana:
```
make grafana
```Run `terraform plan`:
```
make tf-plan
```