
Create a IoT Rule with a S3 action that puts messages in a S3 bucket and triggers a Lambda function to extract the S3 object key.
iot/ and is identified by the timestamp in unix format. The Lambda function is configured with an event source mapping and it will be triggered when a new object is added to the iot/ prefix. In this sample the Lambda function extracts and logs the S3 object key.git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/iot-s3-lambda-cdkcdk deploycdk delete.