aws-cloudformation / aws-cloudformation/cloudformation-cli

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

Open
#1,072 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
336
Forks
172
Avg merge
3d 5m
Merged PRs (30d)
3

Description

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](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-model-false-drift.html#resource-type-model-false-drift-property-transform)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.