OOTB generated python CF resource cannot be used with cfn test
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 38/100
Piste de recherche
Reproduisez l’échec en suivant les étapes indiquées pour cloudformation-cli, SAM, macOS arm64 et la ressource générée, en terminant par cfn test -- -k contract_create_delete. Examinez ensuite src/cloudformation_cli_python_lib/cipher.py, src/setup.py et le requirements.txt généré concernant les contraintes de aws-encryption-sdk et cryptography. La tâche est terminée lorsque la ressource générée peut exécuter le test de contrat sans l’erreur d’importation de ObjectIdentifier.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Python
- Étoiles
- 107
- Forks
- 46
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de aws-cloudformation/cloudformation-cli-python-plugin
-
Support UV Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
Repo alive? Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
aws-cloudformation/cloudformation-cli-python-plugin#270 · 1 commentaire · 1 réaction ·
-
Improve docstrings for Hooks Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
aws-cloudformation/cloudformation-cli-python-plugin#268 · 1 commentaire · 2 réactions ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
aws-cloudformation/cloudformation-cli-python-plugin#264 · 1 commentaire ·
Toutes les issues de aws-cloudformation/cloudformation-cli-python-plugin
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
stephrobert/dsoxlab#238 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
sublimehq/package_control#1780 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
nwg-piotr/nwg-displays#145 ·