Skip to content

Instantly share code, notes, and snippets.

@ddmitov
Created March 3, 2021 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddmitov/2314e21ddbc5a4b03ddef6788debd169 to your computer and use it in GitHub Desktop.
Save ddmitov/2314e21ddbc5a4b03ddef6788debd169 to your computer and use it in GitHub Desktop.
import os
import json
def lambda_handler(event, context):
json_region = os.environ['AWS_REGION']
return {
"statusCode": 200,
"headers": {
"Content-Type": "application/json"
},
"body": {
"AWS region": json_region
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment