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

オープン
#1,072 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
cli, testing-qa

調査の方向性

src/rpdk/core/contract/resource_client.py の258行目付近から始め、リンク先の CloudFormation ドキュメントに記載されている JSONata 構文と、pyjq ベースの propertyTransform の動作を比較してください。contract-test パスを通じて不一致を再現し、その後、propertyTransform 式がバックエンドと同じ動作を使用すること、および状態設定の誤りが明確に失敗することを確認してください。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
336
フォーク
173
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws-cloudformation/cloudformation-cli のほかの issue

aws-cloudformation/cloudformation-cli の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。