How should I properly to handle capacity constraint definitions within genesyscloud_wfm_schedule_group resources without triggering perpetual plan drift?
Deploying via Terraform provider v1.9.4 in the au-1 environment. The state file records the capacity_constraints block. However, subsequent plans show a modification where Genesys Cloud API returns the constraints with slightly different internal IDs or normalized values compared to the HCL definition.
Error: Plan shows changes to genesyscloud_wfm_schedule_group.test_group.capacity_constraints[0].id
The HCL is static. The API response varies. This breaks our CI/CD pipeline for automated WFM deployments. The standard ignore_changes meta-argument feels like a band-aid that risks out-of-sync state if the backend logic changes.
Is there a recommended pattern for referencing these constraints? Should we be using a genesyscloud_wfm_capacity_constraint resource and referencing it by ID, rather than defining the constraint inline within the schedule group? Current documentation is sparse on the relationship between these two resource types.