No idea why this is happening, our Terraform plan fails after upgrading the Genesys Cloud provider to v1.35.0. The genesyscloud_user resource schema appears to have changed unexpectedly. The documentation states: “The user resource schema remains stable across minor versions.” Yet, I am seeing this error:
Error: Unsupported argument
on main.tf line 12, in resource "genesyscloud_user" "test":
12: username = var.user_name
An argument named "username" is not expected here.
Yep, this is a known issue with the v1.35.0 schema update. email is now the required identifier, so you must drop username and map your variable to the new field to pass validation.
Dropping username fixes the plan. My Deno webhooks rely on email for user lookup now anyway, so this aligns well. Just verify your existing users have valid emails.