AWS, AWS Lambda, Programming, Software Development, Cloud Services.
endpoint_url = "http://localhost.localstack.cloud:4566" filename = 'app_output-{date:%Y-%m-%d_%H:%M:%S}.txt'.format(date=datetime.datetime.now()) with open(filename, 'w') as f: # using csv.writer method from CSV package write = csv.writer(f) write.writerows(event) s3 = boto3.client("s3",