Created
September 29, 2020 15:09
-
-
Save rajshah001/2d53b50188c1538d1cc1e65dc491d2a4 to your computer and use it in GitHub Desktop.
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 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