Read JSON from S3 and upload it to RDS using Lambda through

You are missing closing parentheses:

    pymysql_insert = cursor.execute("INSERT INTO rchd2(uniquedataid, platformdetails, systemname, processorname, architecturaldetail, nodename) VALUES (%s, %s, %s, %s, %s, %s)")