Open sumit1912 opened 2 months ago
I am creating API gateway by Chalice in my CDK application construct. I have the below dependency packages:
aws-cdk-lib==2.150.0 constructs>=10.0.0,<11.0.0 aws-cdk.aws-lambda-python-alpha==2.150.0a0 boto3 chalice chalice[cdkv2] pyyaml pylint pylint-exit schema aws_lambda_powertools aws_assume_role_lib requests
I am getting error while cdk synth -v
cdk synth -v
I am stuck here for long...Any hint will be highly appreciated :)
I am creating API gateway by Chalice in my CDK application construct. I have the below dependency packages:
aws-cdk-lib==2.150.0 constructs>=10.0.0,<11.0.0 aws-cdk.aws-lambda-python-alpha==2.150.0a0 boto3 chalice chalice[cdkv2] pyyaml pylint pylint-exit schema aws_lambda_powertools aws_assume_role_lib requests
I am getting error while
File "/root/venv/lib/python3.11/site-packages/jsii/_runtime.py", line 118, in __call__ -- 863 | inst = super(JSIIMeta, cast(JSIIMeta, cls)).__call__(*args, **kwargs) 864 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 865 | File "/root/venv/lib/python3.11/site-packages/chalice/cdk/construct.py", line 75, in __init__ 866 | self._package_app() 867 | File "/root/venv/lib/python3.11/site-packages/chalice/cdk/construct.py", line 91, in _package_app 868 | api.package_app( 869 | File "/root/venv/lib/python3.11/site-packages/chalice/api/__init__.py", line 27, in package_app 870 | packager.package_app(config, output_dir, stage) 871 | File "/root/venv/lib/python3.11/site-packages/chalice/package.py", line 1481, in package_app 872 | resources = self._resource_builder.construct_resources( 873 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 874 | File "/root/venv/lib/python3.11/site-packages/chalice/package.py", line 115, in construct_resources 875 | application = self._application_builder.build( 876 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 877 | File "/root/venv/lib/python3.11/site-packages/chalice/deploy/appgraph.py", line 29, in build 878 | for function in config.chalice_app.pure_lambda_functions: 879 | ^^^^^^^^^^^^^^^^^^ 880 | File "/root/venv/lib/python3.11/site-packages/chalice/config.py", line 136, in chalice_app 881 | app = v() 882 | ^^^ 883 | File "/root/venv/lib/python3.11/site-packages/chalice/cli/factory.py", line 325, in load_chalice_app 884 | validate.validate_feature_flags(chalice_app) 885 | File "/root/venv/lib/python3.11/site-packages/chalice/deploy/validate.py", line 91, in validate_feature_flags 886 | for feature in chalice_app._features_used: 887 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 888 | AttributeError: 'App' object has no attribute '_features_used' 889 | [13:50:35] failed command: python3 app.py 890 | [13:50:35] Notices refreshed 891 | 892 | Subprocess exited with error 1 893 | [13:50:35] Error: Subprocess exited with error 1 894 | at ChildProcess.cdk synth -v
I am stuck here for long...Any hint will be highly appreciated :)