ably / terraform-provider-ably

Ably's Terraform Provider, enabling you to manage your Ably account programmatically.
https://registry.terraform.io/providers/ably/ably
Apache License 2.0
11 stars 2 forks source link

Can't change request mode for rules without enveloped #147

Closed Morganamilo closed 1 year ago

Morganamilo commented 1 year ago

From playing around with request mode and enveloped. It appears that if request mode is single, enveloped must be false and if request mode is batch, enveloped must be true. I'm not sure why this is exposed as two settings.

Some rules do not support enveloped but maybe store this field internally. You can create these rules with both single and batch mode. Changing from batch to single seems to work but not single to batch.

This happens for at least these rules: CloudFlare, IFTTT, Zapier

Could not update resource Cloudflare Worker, unexpected error:
        /apps/e6cGrg/rules/Q1Q6HA: Invalid resource: code 40022: status code: 422
        see: https://help.ably.io/error/40022
          enveloped:
            enveloped is not supported for webhook type
sync-by-unito[bot] commented 1 year ago

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-2980

stmoreau commented 1 year ago

Closing as fixed on https://github.com/ably/terraform-provider-ably/pull/145