Skip to content

Instantly share code, notes, and snippets.

@EngineerLabShimazu
Created May 28, 2020 01:26
Show Gist options
  • Save EngineerLabShimazu/03c46239db42898e4b68f7689cbcb89f to your computer and use it in GitHub Desktop.
Save EngineerLabShimazu/03c46239db42898e4b68f7689cbcb89f to your computer and use it in GitHub Desktop.
How to show aws lambda runtime version?
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