-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Hi Team,
Recently we enabled segment approvals via LD UI for all our environments.
Since then we are unable to create segments via terraform. Below is the error we receive when trying to create a segment:
╷
│ Error: failed to update segment "test_segment" in project "test": 403 Forbidden: {"code":"forbidden","message":"approval is required"}
│
│ with module.segments["test_segment"].launchdarkly_segment.team-segment["non-prod"],
│ on ../modules/ld/segments/team_segment.tf line 12, in resource "launchdarkly_segment" "team-segment":
│ 12: resource "launchdarkly_segment" "team-segment" {
│
╵
Below is the terraform plan output:
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# module.segments["test_segment"].launchdarkly_segment.team-segment["non-prod"] will be created
+ resource "launchdarkly_segment" "team-segment" {
+ creation_date = (known after apply)
+ description = "Onboarding test tenants"
+ env_key = "non-prod"
+ id = (known after apply)
+ key = "test_segment"
+ name = "test_segment"
+ project_key = "test"
+ tags = [
+ "standard-segment",
+ "terraform-managed",
]
+ unbounded = false
+ unbounded_context_kind = (known after apply)
}
AFAIU, this should be a create operation and approvals are required for update operations.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels