I currently have a Python lambda function that is returning a JSON object. However rather then getting a white screen with JSON data I was wondering if there is a way to return a html webpage that returns instead of JSON? Currently the return data looks like
return {
'statusCode': 200,
'headers': {},
'body': json.dumps({
'HOW-TO: ': prompt,
'instanceId': instanceId,
'PUBLIC_IP_ADDRESS': publicIp,
'instanceRegion':Instance_region
})
But was curious if there is a way to return an HTML page instead?