Himansh Mudigonda opened merge request !7: Add gitlab_project_feature_flag resource with full CRUD and ImportState at GitLab Community / GitLab.org / GitLab ...

Himansh Mudigonda
2026-03-16T18:10:03Z

Issue Fixed: gitlab-org/terraform-provider-gitlab#1213

This merge request adds a new Terraform resource for managing GitLab feature flags at the project level. Feature flags are a development tool that allows teams to gradually roll out new features to users using different strategies (like releasing to a percentage of users or specific user groups).

The implementation includes:

A new resource called gitlab_project_feature_flag that can create, read, update, and delete feature flags

Support for multiple rollout strategies including gradual rollout by user ID, targeting specific users, and flexible rollout options

Configuration options for scoping feature flags to specific environments (like production or staging)

Documentation and examples showing how to use the resource

Import functionality to bring existing feature flags under Terraform management

The resource integrates with GitLab's REST API and follows Terraform best practices.