You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data "launchdarkly_team_members" "tesla" { emails = ["[email protected]", "[email protected]"] } resource "launchdarkly_feature_flag" "mohamaa-featurex" { for_each = var.create_flags ? tomap({ for i, v in var.ff_list : i => v }) : tomap({}) project_key = "projectx" name = each.value.ff_name #"mohamaa-featurex" key = each.value.ff_name #"mohamaa-featurexx" description = "Adds the FeatureX to the displayed interface" tags = ["managed-by-terraform"] maintainer_id = data.launchdarkly_team_members.tesla.id variation_type = "boolean" variations { value = true } variations { value = false } }
│ Error: invalid value for maintainer_id (Must be a 24 character hexadecimal string) │ │ with launchdarkly_feature_flag.mohamaa-featurex["0"], │ on main.tf line 24, in resource "launchdarkly_feature_flag" "mohamaa-featurex": │ 24: maintainer_id = data.launchdarkly_team_members.tesla.id │ ╵
The text was updated successfully, but these errors were encountered:
From what I can tell you are trying to assign multiple team members as maintainers to a feature flag. Today, the Terraform provider only supports assigning a single team member as a feature flag maintainer so you would need to do something like this:
Assigning LaunchDarkly teams as maintainers to feature flags is a relatively new feature in LaunchDarkly but is still a clear commission in our Terraform provider today. I've created an internal ticket to add this functionality to our next release and I'll be sure to update this ticket when it's available.
data "launchdarkly_team_members" "tesla" { emails = ["[email protected]", "[email protected]"] } resource "launchdarkly_feature_flag" "mohamaa-featurex" { for_each = var.create_flags ? tomap({ for i, v in var.ff_list : i => v }) : tomap({}) project_key = "projectx" name = each.value.ff_name #"mohamaa-featurex" key = each.value.ff_name #"mohamaa-featurexx" description = "Adds the FeatureX to the displayed interface" tags = ["managed-by-terraform"] maintainer_id = data.launchdarkly_team_members.tesla.id variation_type = "boolean" variations { value = true } variations { value = false } }
│ Error: invalid value for maintainer_id (Must be a 24 character hexadecimal string) │ │ with launchdarkly_feature_flag.mohamaa-featurex["0"], │ on main.tf line 24, in resource "launchdarkly_feature_flag" "mohamaa-featurex": │ 24: maintainer_id = data.launchdarkly_team_members.tesla.id │ ╵
The text was updated successfully, but these errors were encountered: