I don't know how to fix the typescript error: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{}'

I am a javascript developer and I am trying to write typescript. I understand the philosophy of typescript where you have to actually declare the types of variables. Instead of a function being doThis(param1) {…, you would write doThis(param1: string) {… I have this AWS lambda code that DOES work properly. The file is called… Read More I don't know how to fix the typescript error: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{}'

Error while running a python script on AWS Lambda after upgrade python 3.6 to 3.7

My python function stopped working after amazon aws dropped lambda support python 3.6, I updated python to 3.7. import boto3 import os import random import string import botocore from botocore.client import Config AWS_REGION = os.environ[‘AWS_REGION’] DEBUG = false # generate a random string of n characters, lowercase and numbers def generate_random(n): return ”.join(random.SystemRandom().choice(string.ascii_lowercase + string.digits)… Read More Error while running a python script on AWS Lambda after upgrade python 3.6 to 3.7

AWS Lambda Runtime.UserCodeSyntaxError: Syntax error in module 'salesAnalysisReport': invalid syntax

I am working on AWS Solutions Architecting Module 13 Challenge Lab. I have written the following code in my AWS Lambda SalesAnalysisReport function’s salesAnalysisReport.py file : response = snsClient.publish( TopicArn = arn:aws:sns:us-east-1:507782174659:SalesReportTopic, Subject = ‘Daily Sales Analysis Report’, Message = message.getvalue() ) I am running default hello-world test case and getting the following error message… Read More AWS Lambda Runtime.UserCodeSyntaxError: Syntax error in module 'salesAnalysisReport': invalid syntax