I’ve spent hours trying to figure out why the sipstation resource keeps failing during apply. we are trying to automate sip trunk provisioning via terraform. the error is consistent. 400 bad request. invalid sip profile reference.
context:
terraform v1.9.8
genesiscloud provider v1.65.0
environment: genesys cloud org (eu-west-1)
the hcl looks correct. the sip profile id exists in the state file. verified via gccli get sipprofile. the id is valid.
resource “genesyscloud_telephonyprovisioning_sipstation” “test_sip” {
name = “auto-sip-01”
sip_profile_id = genesyscloud_telephonyprovisioning_sipprofile.test.id
auth_id = var.auth_id
auth_pw = var.auth_pw
line_keys = [
{
line = 1
extension = “1001”
}
]
}
error log snippet:
Error: 400 Bad Request
Message: Invalid Sip Profile Reference
tried hardcoding the uuid. same error. tried waiting 10s between profile creation and station creation. same error.
is there a dependency issue not handled by terraform? or is the api endpoint for sipstation expecting a different format for the profile id?
any insights appreciated. stuck on this for 2 days.