This example contains CloudFormation template that creates AWS resources (AWS IoT Core, Amazon Location Service, Amazon RDS, Amazon EventBridge, AWS Lambda, Amazon SES). Scripts to create database schema and import sample data. GeoJSON files for creating geofences.
The scripts to create table schemas and sample data can be found here
The GeoJSON file for creating geofences can be found here
The cloudFormation stack includes three Lambda functions. The details are as follows:
vcs-iot-messageparser
For processing events from IoT and performing the following actions.
- Validate the vehicle information
- Update the vehicle's current Status
vcs-amazon-location-service-eventparser
For processing events from Amazon Location and performing the following actions
- Identify the dealership corresponding to the geofence
- Retrieve the dealer notification information
- Update vehicle's current status
- Send an email notification
vcs-iot-simulator
Used for generating GPS locations and publishing it to AWS IoT Core. Invoking the Lambda will generate three sets of events (transit events indicating that the vehicle is en route, entry events indicating that the vehicle is entering the geofence, and exit events indicating that the vehicle is exiting the geofence).
==============================================
Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.