I am trying to compare the time of an AWS EC2 instance object that is of type datetime with another datetime being represented as datetime.datetime.now. The line of code in question looks like,
Where launchTime is of type datetime. However when I run it I get the error
And I'm unsure of how to convert launchTime in such a way where I can successfully compare it. Edited fixed code below -----------------------------------------
Full code as well in case any future people find it of value. It's Python 3 to stop EC2 instances that have been running for an "x" amount of time. In this case if an instance is running for five minutes. Terminate it. The lambda itself is set up with Cloudwatch to run every 4 minutes as well.
OS: DSM 6 (NAS Synology)
Parameters of search: Here you can see the FALSE value in Daily Search We just upgraded to the most recent version of exchangelib on pip and are getting a new error.
I believe this may be related to a previous issue I raised back in September: #808 This seems to be a rare issue affecting a small percentage of calendar items for a single user (so far). |