Skip to content

terrateamio/flagsmith-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terrateam + Flagsmith Example

This repository demonstrates how to use Terrateam with Flagsmith to manage feature flags using Terraform. It includes an example Terraform configuration for defining and managing feature flags within Flagsmith.

Terraform Configuration

The flagsmith/main.tf file contains an example of using the Flagsmith provider in Terraform to create and manage feature flags.

Getting Started

  1. Fork this repository
  2. Navigate to the forked repo > Actions and enable workflows
  3. Sign up for a Flagsmith account
  4. Get your Flagsmith API key by navigating to Environments > Environment Settings > JSON data and create a FLAGSMITH_MASTER_API_KEY GitHub Secret
  5. Install the Terrateam GitHub application
  6. Create your first pull request with a Flagsmith feature flag in your main.tf
  7. Terrateam will automatically run a terraform plan and post the output back to the pull request
  8. Simply merge the pull request and Terraform will apply the changes with a terraform apply

Terrateam Configuration

The repository is configured to work with Terrateam, a GitOps Terraform automation tool. The .terrateam/config.yml file contains the following settings:

when_modified:
  autoapply: true
  • autoapply: true means that changes to this repository will be automatically applied when the pull request is merged. Once the changes are merged, Terrateam will automatically apply them to Flagsmith, without needing any further manual intervention.

About

Example repository for Flagsmith

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages