I can provision Hosted Pages Group, but tf is never able to refresh it and therefore cannot update them.
module.hostedpages.module.LocalDev.cidaas_hosted_page.page: Refreshing state... [id=LocalDev]
module.apps.module.app_LocalCustomUI.cidaas_app.app: Refreshing state... [id=2ab69030-0393-40e2-xxxx-xxx]
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: failed to read hosted page LocalDev
│
│ with module.hostedpages.module.LocalDev.cidaas_hosted_page.page,
│ on ../../modules/hostedpages/pages.tf line 41, in resource "cidaas_hosted_page" "page":
│ 41: resource "cidaas_hosted_page" "page" {
│
│ status code not 200. found 404, response body:
│ {"success":true,"status":404}
│
╵
error: Recipe `tf` failed on line 8 with exit code 1
For me it seems that the id is not used when fetching from cidaas API. When using the admin-ui and manually edit the HostedPages, i can see a successful call to /hostedpages-srv/hpgroup/LocalDev
with the previously provisioned Hosted Page Group.
I'm using provider version 2.4.5, tf v1.6.6 on macOS.