By Brian Fitzgerald
This could be a bug or an Easter Egg in AWS Lambda. When you create directories “py” and “python”, directory “thon” appears in the Lambda Console code tree. Directory “thon” does not actually exist.
Setup
[ec2-user@ip-172-31-80-17 EasterEgg]$ mkdir py python
[ec2-user@ip-172-31-80-17 EasterEgg]$ cat > lam.py
from os import system
def lam(e,c):
system('du')
return {}
[ec2-user@ip-172-31-80-17 EasterEgg]$ zip -rq ../EasterEgg.zip *
[ec2-user@ip-172-31-80-17 EasterEgg]$ aws lambda update-function-code
--function-name EasterEgg
--zip-file fileb://../EasterEgg.zip
Result
Directory “thon” appears in the code tree.. du output shows that directory “thon” does not exist.
