-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix(aws-cdk-lib): Python 3.6 dperecation for Lambda breaks #155
Comments
I ran into the exact same issue. After some googling around, I found out that I had to migrate to v2 of the AWS CDK. I did that and now the code below wouldn't work. `
` After googling around and borrowing a bit from @davidtucker 's code here https://github.com/davidtucker/cdk-webapp-tools/blob/main/src/WebAppDeployment.ts (line 143 onward), I changed the code block above to the one below: `
` And now it works! I also had to run Here's that updated ` "name": "@ps-serverless/infrastructure", "version": "0.1.0", "bin": {
}, "scripts": {
}, "devDependencies": {
},
} } And here's the updated "app": "npx ts-node --prefer-ts-exts bin/infrastructure.ts" } |
Hi David, working through your pluralsight course (which is fantastic! BTW). Implementing Serverless Web Application Hosting and Delivery on AWS - I am in the section where you first deploy the React App using the CDK... and I'm getting an error.
After some sleuthing - there is what I think is a breaking change in the aws-cdk-lib library where they deprecated python3.6 in favor of python3.9 as of like 7/22/22.
See the related AWS CL deprecating Python 3.6 here: aws/aws-cdk#20647
Here is the Error message I get on deployment:
The text was updated successfully, but these errors were encountered: