Reading data from S3 using Lambda

前端 未结 2 1906
深忆病人
深忆病人 2021-01-31 03:15

I have a range of json files stored in an S3 bucket on AWS.

I wish to use AWS lambda python service to parse this json and send the parsed results to an AWS RDS MySQL d

2条回答
  •  旧时难觅i
    2021-01-31 03:29

    s3 = boto3.client('s3')
    response = s3.get_object(Bucket=bucket, Key=key)
    emailcontent = response['Body'].read().decode('utf-8')
    

提交回复
热议问题