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

AWS Lambda no longer supports Python 2.7 - CFN Templates Broken #15

Open
TimekillerTK opened this issue Oct 19, 2021 · 0 comments
Open

Comments

@TimekillerTK
Copy link

Hi!

As title says, many CFN templates from the repo (including the One-Click Deploys in the lessons), have the following error:
image

Message is self explanatory.

For the IPv6Workaround lambdas, changing the runtime string from python2.7 to python3.7 works, so it can be a quick find/replace fix for those, the result from cloudwatch logs of the Lambda run is a 200:

2021-10-19T18:08:27.387+02:00
{
    "Status": "SUCCESS",
    "Reason": "See the details in CloudWatch Log Stream: 2021/10/19/[$LATEST]a59c7dbd3c3942c2ae41d2ce2d599b10",
    "PhysicalResourceId": "CustomResourcePhysicalID",
    "StackId": "arn:aws:cloudformation:us-east-1:167865304106:stack/A4LTest/a2c1a310-30f6-11ec-9d5b-0a8610a92c17",
    "RequestId": "e79d5b7b-f1e0-4a2f-9573-478983f6e68e",
    "LogicalResourceId": "IPv6WorkaroundSubnetWEBC",
    "NoEcho": false,
    "Data": {
        "SubnetId": "subnet-087382866630c9320"
    }
}

Only issue is this warning:

2021-10-19T18:08:25.209+02:00
/var/task/index.py:5: SyntaxWarning: "is" with a literal. Did you mean "=="? 
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

1 participant