OOTB generated python CF resource cannot be used with cfn test
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
調査の方向性
cloudformation-cli、SAM、macOS arm64、および生成されたリソースについて記載された手順で失敗を再現し、最後に cfn test -- -k contract_create_delete を実行します。次に、aws-encryption-sdk と cryptography の制約に関して、src/cloudformation_cli_python_lib/cipher.py、src/setup.py、および生成された requirements.txt を調査します。生成されたリソースが ObjectIdentifier のインポートエラーなしでコントラクトテストを実行できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Repro:
- Install latest cloudformation-cli
- Install master branch of this repo
- Generate a new resource type - in my example I used
python3.9 - run
cfn submit --dry-run - run
sam build - in new terminal run
sam local start-lambda - run just one contract test -
cfn test -- -k contract_create_delete - Error from cryptography library:
Unable to import module 'dd_dd_test1.handlers': cannot import name 'ObjectIdentifier' from 'cryptography.hazmat.bindings._rust' (unknown location)
Environment:
- cfn version -
cfn 0.2.28 - SAM version -
SAM CLI, version 1.66.0 - Operating System -
macOS Monterey - 12.3.1 - Architecture - Apple M1 Pro (arm64)
- plugin version -
cloudformation-cli-python-plugin @ git+https://github.com/aws-cloudformation/cloudformation-cli-python-plugin.git@fad3b0740a76c7bad0be18b08cb46f6e22973bde(master as of 01/17/2023) - requirements.txt (generated) -
cloudformation-cli-python-lib>=2.1.9 - Resolved cryptography library -
cryptography 39.0.0
Research:
- User having issues with python3.8 in lambda environment - https://stackoverflow.com/questions/75129142/aws-lambda-cannot-import-name-objectidentifier-from-cryptography-hazmat-b
aws-encryption-sdkonly requires 3.4.0 or above currently. This is used here. And defined here
- 主要言語
- Python
- スター
- 107
- フォーク
- 46
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aws-cloudformation/cloudformation-cli-python-plugin のほかの issue
-
Support UV オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Repo alive? オープン
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
aws-cloudformation/cloudformation-cli-python-plugin#270 · コメント 1 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
aws-cloudformation/cloudformation-cli-python-plugin#268 · コメント 1 件 · リアクション 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
aws-cloudformation/cloudformation-cli-python-plugin#264 · コメント 1 件 ·
aws-cloudformation/cloudformation-cli-python-plugin の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
syfoud/Simulated_Scepter#172 ·
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main オープンarea: ci bug perceived difficulty: 3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
EleutherAI/lm-evaluation-harness#4207 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/clickhouse-connect#1057 ·