-
Notifications
You must be signed in to change notification settings - Fork 49
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
OOTB generated python CF resource cannot be used with cfn test #247
Comments
Full trace:
|
Found out issue: 1st issue: Enhancement Request - With 2nd issue: Confirmed:
This fundamentally breaks native zipping with SAM CLI to allow contract testing locally. Posting workaround below. AWS team - is there any plans to make it so we can ship native docker container images as an integration instead? If not, how will we overcome the native dependency install? SAM CLI Change? aws-lambda-builders change? In this case we cannot say As I see it - this completely blocks Complete workaround:
|
Repro:
python3.9
cfn submit --dry-run
sam build
sam local start-lambda
cfn test -- -k contract_create_delete
Unable to import module 'dd_dd_test1.handlers': cannot import name 'ObjectIdentifier' from 'cryptography.hazmat.bindings._rust' (unknown location)
Environment:
cfn 0.2.28
SAM CLI, version 1.66.0
macOS Monterey - 12.3.1
cloudformation-cli-python-plugin @ git+https://github.com/aws-cloudformation/cloudformation-cli-python-plugin.git@fad3b0740a76c7bad0be18b08cb46f6e22973bde
(master as of 01/17/2023)cloudformation-cli-python-lib>=2.1.9
cryptography 39.0.0
Research:
aws-encryption-sdk
only requires 3.4.0 or above currently. This is used here. And defined hereThe text was updated successfully, but these errors were encountered: