https://github.com/circa10a/terraform-feature-toggle-example
A repo to demonstrate enabling/disabling of infrastructure features
https://github.com/circa10a/terraform-feature-toggle-example
digitalocean feature-flags feature-toggles terraform terraform-module
Last synced: 10 months ago
JSON representation
A repo to demonstrate enabling/disabling of infrastructure features
- Host: GitHub
- URL: https://github.com/circa10a/terraform-feature-toggle-example
- Owner: circa10a
- License: mit
- Archived: true
- Created: 2021-01-23T17:25:34.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-23T19:21:53.000Z (over 5 years ago)
- Last Synced: 2025-01-29T23:33:57.185Z (over 1 year ago)
- Topics: digitalocean, feature-flags, feature-toggles, terraform, terraform-module
- Language: HCL
- Homepage: https://dev.to/circa10a/how-to-use-feature-toggles-with-terraform-28fi
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform feature toggle example 
A repo to demonstrate enabling/disabling of infrastructure features

## Usage
### Module
```hcl
module "do_load_balanced_nginx" {
source = "git::https://github.com/circa10a/terraform-feature-toggle-example.git/"
}
```
### Local
Clone the repository then install modules and provider
```bash
git clone https://github.com/circa10a/terraform-feature-toggle-example.git/
cd terraform-feature-toggle-example/
terraform init
```
## Config
Configuration has defaults in `default.auto.tfvars`
## Inputs
| Variable | Type | Default |
|---------------------------|----------|----------------------|
| `instance_count` | `number` | `1` |
| `load_balancing_enabled` | `bool` | `false` |
## Outputs
| Outputs | Type |
|---------------------------|----------------|
| `droplet_ips` | `list(string)` |
| `load_balancer_ip` | `string` |