I am using python for lambda function and it works fine. There is a small issue with date and time returned by lambda function. It shows different date/time and I think it shows UTC timezone. Time shown is 4 hours ahead of original time
Currently, I am connect to us-east-1 region and would like to get results according to my region.
So far I tried in lambda function:
import time
time.ctime()
from datetime import datetime
datetime.now().strf("%m-%d-%Y %H:%M:%S")
file_name = 'VDI_Health_Status_Report-%s.csv' % time.ctime()
print(file_name)
Locally, they work fine but with lambda function, I dont get the desired result. I also came across "pytz" module in python which could be the solution but not sure if lambda function would have access to it as I had to install the module locally. Any way around this or any suggestions? Thanks