cloudformation-cli icon indicating copy to clipboard operation
cloudformation-cli copied to clipboard

`cloudformation-cli` uses pyjq for `propertyTransform` while AWS backend uses JSONata syntax

Open skarimo opened this issue 1 year ago • 0 comments

The cloudformaiton-cli uses pyjq syntax for transforming models See: [here](https://github.com/aws-cloudformation/cloudformation-cli/blob/master/src/rpdk/core/contract/resource_client.py#L258

However, the backend uses JSONata. See here

Unfortunately this means we cannot use contract tests to test the behavior of our resources. In addition, any developer mistake in setting state will fail in non-obvious ways when using propertyTransform

skarimo avatar May 24 '24 13:05 skarimo