Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

This solution prevents attackers from tampering with quality data by using Amazon Quantum Ledger Database (Amazon QLDB) to maintain an accurate history of data changes.

License

Notifications You must be signed in to change notification settings

awslabs/tamper-proof-quality-data-using-amazon-qldb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Deprecation Notice

This AWS Solution has been archived and is no longer maintained by AWS. To discover other solutions, please visit the AWS Solutions Library.

Tamper Proof Quality Data Using Amazon QLDB

The Tamper Proof Quality Data Using Amazon QLDB is a solution that demonstrates how to inhibit customers from tampering with important data such as product quality data in manufuctuaring companies leveraging blockchain technology.

Please refer to Implementation Guide for the detail of this solution.

Table of contents

Architecture overview

architecture

Deployment

The solution is deployed using a CloudFormation template or CDK project. For details on deploying the solution please see the details on the solution home page: Tamper Proof Quality Data Using Amazon QLDB

Development

Project structure

├── deployment
│   └── cdk-solution-helper  [Lightweight helper that cleans-up synthesized templates from the CDK]
└── source
    ├── bin                  [Entrypoint of the CDK application]
    ├── img                  [Images used in the documents]
    ├── lambda               [Code for the Lambda functions]
    │   ├── helper           [Utility code for each Lambda function]
    │   ├── lib              [Common utility code]
    │   └── test             [Unit tests for Lambda functions]
    ├── lib                  [Constructs and stacks for the components of the solution]
    └── test                 [Unit tests for CDK code]

Running unit tests

You can run unit tests for both CDK and Lambda code by the following commands:

cd source
npm ci
sh ./run-all-tests.sh

Running a local build

This project uses AWS Cloud Development Kit to build and deploy AWS resources. Please setup and bootstrap CDK first. The document is here.

After setting up CDK, run the commands below:

cd source
npm ci
npx cdk synth

Usage

As shown in the architecture diagram, there're three input ways in this solution.

  1. Amazon API Gateway
  2. Amazon S3
  3. AWS IoT core

Please refer to Implementation Guide for the detailed usage of these inputs.


Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.removed api and email

About

This solution prevents attackers from tampering with quality data by using Amazon Quantum Ledger Database (Amazon QLDB) to maintain an accurate history of data changes.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published