Serverless Compute to Measure End-User Experience with AWS Lambda

Some background

The real need

The approach, and why used AWS Lambda?

def lambda_handler(event, context):

return some_value
def lambda_handler(event, context):

driver = webdriver.Chrome(chrome_options=chrome_options)

az= os.environ['availzone']
# configure your ssm client here, such as AWS key or region
ssm = boto3.client('ssm')
session = boto3.session.Session()
param = f'/{client}/{environment}/{az}/UserID'
#print('user: ', param)
PSUsername = ssm.get_parameter(Name=param, WithDecryption=True)
username= PSUsername['Parameter']['Value']
param = f'/{client}/{environment}/{az}/password'
#print('pass: ', param)
PSPassword = ssm.get_parameter(Name=param, WithDecryption=True)
password= PSPassword['Parameter']['Value']



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store