Created
May 28, 2020 01:26
-
-
Save EngineerLabShimazu/03c46239db42898e4b68f7689cbcb89f to your computer and use it in GitHub Desktop.
How to show aws lambda runtime version?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
def lambda_handler(event, context): | |
""" | |
Amazon Linux release 2 (Karoo) | |
runtime: python3.8 | |
date: 2020/05/28 | |
""" | |
proc = subprocess.run(['cat', '/etc/system-release'], stdout = subprocess.PIPE) | |
print(proc.stdout.decode("utf8")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment