Skip to content
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

ECS Cluster AutoScaling asks for Python 3.6 which is NOT supported Please upgrade code to Python 3.9+ #61

Closed
DevoKun opened this issue Sep 23, 2022 · 1 comment

Comments

@DevoKun
Copy link
Contributor

DevoKun commented Sep 23, 2022

https://ecsworkshop.com/capacity_providers/ec2/#ecs-cluster-autoscaling-0

3:23:00 PM | CREATE_FAILED        | AWS::Lambda::Function                      | ECSClusterECSEC2Ca...okFunctionBC271921
Resource handler returned message: "The runtime parameter of python3.6 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (python3.9) while creating or updating functio
ns. (Service: Lambda, Status Code: 400, Request ID: f28a00cd-1865-4a94-93d8-7915c8ed5026)" (RequestToken: 1343d4b7-25ba-273c-6ac8-e7dac1a40585, HandlerErrorCode: InvalidRequest)

        new Function (/tmp/jsii-kernel-kxk50h/node_modules/@aws-cdk/aws-lambda/lib/function.js:72:26)
        \_ new InstanceDrainHook (/tmp/jsii-kernel-kxk50h/node_modules/@aws-cdk/aws-ecs/lib/drain-hook/instance-drain-hook.js:21:20)
        \_ Cluster.addAutoScalingGroup (/tmp/jsii-kernel-kxk50h/node_modules/@aws-cdk/aws-ecs/lib/cluster.js:144:13)
        \_ Cluster.addCapacity (/tmp/jsii-kernel-kxk50h/node_modules/@aws-cdk/aws-ecs/lib/cluster.js:99:14)
        \_ /tmp/tmpli6_005l/lib/program.js:5453:144
        \_ exports.Kernel._ensureSync (/tmp/tmpli6_005l/lib/program.js:5871:28)
        \_ exports.Kernel.invoke (/tmp/tmpli6_005l/lib/program.js:5453:73)
        \_ exports.KernelHost.processRequest (/tmp/tmpli6_005l/lib/program.js:6618:36)
        \_ exports.KernelHost.run (/tmp/tmpli6_005l/lib/program.js:6592:48)
        \_ Immediate._onImmediate (/tmp/tmpli6_005l/lib/program.js:6593:46)
        \_ processImmediate (node:internal/timers:466:21)
@maishsk
Copy link
Contributor

maishsk commented Sep 29, 2022

The CDK version in the workshop is of date and is currently being worked on in #59

@maishsk maishsk closed this as completed Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants