Closed vaquarkhan closed 1 year ago
Can we have a look at the cdk.context.json? Does it contain both the tooling and the deployment account?
Update :
I have setup window 10 powershell and run same commands again and getting same error
(venv) PS C:\dataall\aws-dataall> cdk synth [2023-03-10 19:37:59,112][credentials.py:1255] Found credentials in shared credentials file: ~/.aws/credentials [2023-03-10 19:37:59,734][app.py : 40] Trying to get cdkjson parameter from SSM [2023-03-10 19:38:00,016][app.py : 49] SSM parameter not found - Proceeding with cdk.json and cdk.context.json in code [2023-03-10 19:38:00,031][app.py : 54] Loaded context from cdk.json file in repository Bundling asset dataall-main-cicd-stack/dataall-sandbox-backend-stage/backend-stack/Cognito/CognitoParamsSyncHandlersandbox/Code/Stage... jsii.errors.JavaScriptError: Error: Failed to bundle asset dataall-main-cicd-stack/dataall-sandbox-backend-stage/backend-stack/Cognito/CognitoParamsSyncHandlersandbox/Code/Stage, bundle output is located at C:\dataall\aws-dataall\cdk.out\asset.2cd6fafc2341be652b93379d7b28312db9820e80e01c47930667c0815c206979-error: @jsii/kernel.RuntimeError: Command '['cp -a C:\dataall\aws-dataall\deploy\custom_resources\sync_congito_params/. C:\dataall\aws-dataall\cdk.out\asset.2cd6fafc2341be652b93379d7b28312db9820e80e01c47930667c0815c206979/ && pip install -r C:\dataall\aws-dataall\deploy\custom_resources\sync_congito_params\requirements.txt -t C:\dataall\aws-dataall\cdk.out\asset.2cd6fafc2341be652b93379d7b28312db9820e80e01c47930667c0815c206979']' returned non-zero exit status 1. at AssetStaging.bundle (C:\Users\ADMINI~1\AppData\Local\Temp\jsii-kernel-zIi5m1\node_modules\aws-cdk-lib\core\lib\asset-staging.js:2:672) at AssetStaging.stageByBundling (C:\Users\ADMINI~1\AppData\Local\Temp\jsii-kernel-zIi5m1\node_modules\aws-cdk-lib\core\lib\asset-staging.js:1:4168) at stageThisAsset (C:\Users\ADMINI~1\AppData\Local\Temp\jsii-kernel-zIi5m1\node_modules\aws-cdk-lib\core\lib\asset-staging.js:1:1675) at Cache.obtain (C:\Users\ADMINI~1\AppData\Local\Temp\jsii-kernel-zIi5m1\node_modules\aws-cdk-lib\core\lib\private\cache.js:1:242) at new AssetStaging (C:\Users\ADMINI~1\AppData\Local\Temp\jsii-kernel-zIi5m1\node_modules\aws-cdk-lib\core\lib\asset-staging.js:1:2070) at new Asset (C:\Users\ADMINI~1\AppData\Local\Temp\jsii-kernel-zIi5m1\node_modules\aws-cdk-lib\aws-s3-assets\lib\asset.js:1:620) at AssetCode.bind (C:\Users\ADMINI~1\AppData\Local\Temp\jsii-kernel-zIi5m1\node_modules\aws-cdk-lib\aws-lambda\lib\code.js:1:3506) at new Function (C:\Users\ADMINI~1\AppData\Local\Temp\jsii-kernel-zIi5m1\node_modules\aws-cdk-lib\aws-lambda\lib\function.js:1:2424) at Kernel._create (C:\Users\ADMINI~1\AppData\Local\Temp\tmp1kx93aew\lib\program.js:9937:29) at Kernel.create (C:\Users\ADMINI~1\AppData\Local\Temp\tmp1kx93aew\lib\program.js:9666:29)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "./deploy/app.py", line 68, in
Subprocess exited with error 1 (venv) PS C:\dataall\aws-dataall>
Update : Configure Ubantu 20 on window 10 and cdk worked without issue , it seems instruction provided only works for Unix not window .
Thank you @vaquarkhan for diving deep on the issue. I would also be interested to know if this an issue that only affects you when using Windows to deploy data.all or if you have issues running cdk synth
on ther CDK applications.
I am still looking into it will share detail once fix on my window machine
Thank you @vaquarkhan
Closing this issue as it has a workaround and is inactive
Window 10 Python 3.8
Describe the bug
https://awslabs.github.io/aws-dataall/deploy-aws/
Json
Logs 👍
How to Reproduce
Clone code and run "cdk synth"
Expected behavior
Should work without error
Your project
No response
Screenshots
attached logs
OS
Window 10
Python version
3.7 and 3.8
AWS data.all version
https://github.com/awslabs/aws-dataall
Additional context
tried on python 3.7 and 3.8 its not working
2023-03-01 23:31:12,160][credentials.py:1255] Found credentials in shared credentials file: ~/.aws/credentials [2023-03-01 23:31:12,822][app.py : 40] Trying to get cdkjson parameter from SSM [2023-03-01 23:31:13,041][app.py : 49] SSM parameter not found - Proceeding with cdk.json and cdk.context.json in code [2023-03-01 23:31:13,057][app.py : 54] Loaded context from cdk.json file in repository Bundling asset dataall-main-cicd-stack/dataall-sandbox-backend-stage/backend-stack/Cognito/CognitoParamsSyncHandlersandbox/Code/Stage... jsii.errors.JavaScriptError: Error: Failed to bundle asset dataall-main-cicd-stack/dataall-sandbox-backend-stage/backend-stack/Cognito/CognitoParamsSyncHandlersandbox/Code/Stage, bundle output is located at C:\dataall\test\dataall\cdk.out\asset.2cd6fafc2341be652b93379d7b28312db9820e80e01c47930667c0815c206979-error: @jsii/kernel.RuntimeError: Command '['cp -a C:\dataall\test\dataall\deploy\custom_resources\sync_congito_params/. C:\dataall\test\dataall\cdk.out\asset.2cd6fafc2341be652b93379d7b28312db9820e80e01c47930667c0815c206979/ && pip install -r C:\dataall\test\dataall\deploy\custom_resources\sync_congito_params\requirements.txt -t C:\dataall\test\dataall\cdk.out\asset.2cd6fafc2341be652b93379d7b28312db9820e80e01c47930667c0815c206979']' returned non-zero exit status 1.