Skip to content

Instantly share code, notes, and snippets.

@rajshah001
Created September 29, 2020 15:09
Show Gist options
  • Select an option

  • Save rajshah001/2d53b50188c1538d1cc1e65dc491d2a4 to your computer and use it in GitHub Desktop.

Select an option

Save rajshah001/2d53b50188c1538d1cc1e65dc491d2a4 to your computer and use it in GitHub Desktop.
import json
def lambda_handler(event, context):
lambda_image = 'https://d1.awsstatic.com/Digital%20Marketing/House/PAC/2up/PAC-Q4_House-Ads_Lambda_2up.62dc7e19b7b2e0a2c06821594c31f1ce00a6bdda.png'
response = {
'image': lambda_image,
'text': 'Hello from Lambda!!'
}
return {
'statusCode': 200,
'headers': {
'Access-Control-Allow-Origin': '*'
},
'body': json.dumps(response)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment