Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skarimo opened this issue May 24, 2024 · 0 comments

Comments

@skarimo
Copy link

skarimo commented May 24, 2024

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 skarimo changed the title propertyTransform uses pyjq while AWS cf backend uses JSONata syntax cloudformation-cli uses pyjq for propertyTransform while AWS backend uses JSONata syntax May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant