unfor19 / aws-build-badges

Create AWS status/commit-id badges for CodeBuild & CodePipeline automatically
MIT License
40 stars 19 forks source link

Need to upgrade the version of python #70

Open HardBlock729 opened 3 years ago

HardBlock729 commented 3 years ago

Resource handler returned message: "The runtime parameter of python2.7 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (python3.9) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: yadayada, Extended Request ID: null)" (RequestToken: yadayada, HandlerErrorCode: InvalidRequest)

dclaze commented 3 years ago

+1, just ran into this as well.

Found a workaround by modifying the template from the README.

  1. Download template
  2. Find and replace python2.7 with python3.9
  3. Go to CloudFormation in AWS Console and create a new stack referencing the above modified template file.