terraform-provider-commercetools icon indicating copy to clipboard operation
terraform-provider-commercetools copied to clipboard

Validate inputs for subscription destinations

Open demeyerthom opened this issue 1 year ago • 1 comments

We currently don't check for additionally set fields when processing an update to a subscription. When fields are set that are not used for an update (for example region on an SNS destination) the provider breaks after apply because its new state is inconsistent with its expected state.

We should validate these inputs up front, and throw an error when fields are set that are not expected by the destination.

demeyerthom avatar Aug 21 '23 13:08 demeyerthom

Should fix bugs like https://github.com/labd/terraform-provider-commercetools/issues/355

demeyerthom avatar Aug 21 '23 13:08 demeyerthom