簡易版轉換型 lambda
你的一位歐洲同事請你在 lambda 轉換函式中,將所有進來的車速資料轉換為公里。
對於每筆進來的紀錄,將速度改為每小時公里數,而不是每小時英里數。
base64 模組已經為你匯入,環境中也提供了空的 output 清單可使用。
本練習屬於課程
使用 AWS Kinesis 與 Lambda 的串流資料
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
for record in event['records']:
#Decode the incoming data and convert it to a list
payload_dec = base64.____(record['data']).decode().split(" ")