Skip to content

Segment overrides are not being removed from the UI when we Terraform Apply #212

@deepforest

Description

@deepforest

We are using TF files with features and segment overrides as our Single Source of Truth, managed in GitHub, while allowing users to change segments via the Dashboard for experimentation.

We’ve noticed that when segment overrides are added manually through the UI, running Terraform does not remove them, even though the .tf file should act as the SSOT.

For example:

  1. We apply a Terraform file in production containing [seg1] and [seg2].
  2. We then manually add [seg3] via the UI for experimentation.
  3. When we re-run the original Terraform file to reset the environment, [seg1] and [seg2] are synced with any changes in the .tf files but [seg3] remains instead of being removed.

Currently, we are deleting all segments via the Flagsmith API before applying the Terraform files, but this process is quite risky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions