Giter Site home page Giter Site logo

agl_v2c_demo's Introduction

AGL V2C Demo

This project demonstrates an implementation of the Vehicle to Cloud (V2C) project as part of the Automotive Grade Linux (AGL) Working Group. The V2C project aims to develop an MQTT client that interfaces with the kuksa.val platform for accessing vehicle signals and provides compatibility with AWS IoT, leveraging current standards for vehicle communication. Security is enforced through mTLS authentication.

For more information about the V2C project, please refer to the project specification.

The implementation provided here is an example of using AWS IoT Core as well as Amazon Timestream and Amazon Managed Grafana.

High-Level Architecture

The code in this repository represents the cloud part of the V2C project, while the device part is located in the AGL repository (link will be provided).

arch

Getting Started

After the init process completes and the virtualenv is created, you can use the following step to activate your virtualenv.

$ source .venv/bin/activate

Once the virtualenv is activated, you can install the required dependencies.

$ pip install -r requirements.txt

At this point you can now synthesize the CloudFormation template for this code.

$ cdk synth

To add additional dependencies, for example other CDK libraries, just add them to your setup.py file and rerun the pip install -r requirements.txt command.

Useful commands

  • cdk ls list all stacks in the app
  • cdk synth emits the synthesized CloudFormation template
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk docs open CDK documentation

Setup Grafana

After deploying the stack as an output you will be provided with AglV2CDemoStack.WorkspaceRoleToAssume.

This can then be used to create Amazon Managed grafana using the following command:

aws grafana create-workspace --account-access-type CURRENT_ACCOUNT --authentication-providers AWS_SSO --permission-type SERVICE_MANAGED --workspace-data-sources TIMESTREAM --workspace-role-arn <AglV2CDemoStack.WorkspaceRoleToAssume ARN>

Device Provisioning

For device provisioning please refer to the documentation: https://docs.aws.amazon.com/iot/latest/developerguide/iot-provision.html

License

This project is licensed under the MIT License.

agl_v2c_demo's People

Contributors

nenadilic84 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.