cdklabs.cdk-hyperledger-fabric-network


Namecdklabs.cdk-hyperledger-fabric-network JSON
Version 0.8.755 PyPI version JSON
download
home_pagehttps://github.com/cdklabs/cdk-hyperledger-fabric-network.git
SummaryCDK construct to deploy a Hyperledger Fabric network running on Amazon Managed Blockchain
upload_time2024-12-24 00:24:26
maintainerNone
docs_urlNone
authorAmazon Web Services
requires_python~=3.8
licenseMIT-0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Hyperledger Fabric on Amazon Managed Blockchain

[![license](https://img.shields.io/github/license/cdklabs/cdk-hyperledger-fabric-network?color=green)](https://opensource.org/licenses/MIT)
[![release](https://img.shields.io/github/v/release/cdklabs/cdk-hyperledger-fabric-network?color=green)](https://github.com/cdklabs/cdk-hyperledger-fabric-network/releases)
[![npm:version](https://img.shields.io/npm/v/@cdklabs/cdk-hyperledger-fabric-network?color=blue)](https://www.npmjs.com/package/@cdklabs/cdk-hyperledger-fabric-network)
[![PyPi:version](https://img.shields.io/pypi/v/cdklabs.cdk-hyperledger-fabric-network?color=blue)](https://pypi.org/project/cdklabs.cdk-hyperledger-fabric-network/)
[![Maven:version](https://img.shields.io/maven-central/v/io.github.cdklabs/cdk-hyperledger-fabric-network?color=blue&label=maven)](https://central.sonatype.dev/artifact/io.github.cdklabs/cdk-hyperledger-fabric-network/0.8.147)
[![NuGet:version](https://img.shields.io/nuget/v/Cdklabs.CdkHyperledgerFabricNetwork?color=blue)](https://www.nuget.org/packages/Cdklabs.CdkHyperledgerFabricNetwork)

This repository contains a CDK construct to deploy a Hyperledger Fabric network
running on Amazon Managed Blockchain. It builds out a member and its nodes, a VPC
and associated endpoint to access them, and a set of users enrolled on the network.

The following functionality is planned for future releases:

* Create channels on nodes
* Instantiate chaincode on nodes

## Installation

Note that this construct requires [AWS CDK v2](https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html#getting_started_install).

#### JavaScript

```bash
npm install --save @cdklabs/cdk-hyperledger-fabric-network
```

#### Python

```bash
pip3 install cdklabs.cdk-hyperledger-fabric-network
```

#### Java

Add the following to `pom.xml`:

```xml
<dependency>
  <groupId>io.github.cdklabs</groupId>
  <artifactId>cdk-hyperledger-fabric-network</artifactId>
</dependency>
```

#### .NET

```bash
dotnet add package Cdklabs.CdkHyperledgerFabricNetwork
```

## Usage

A minimally complete deployment is shown below. By default, a standard network
will be created running Hyperledger Fabric 1.4 with a single `bc.t3.small` node.

```python
import { Stack, StackProps } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { HyperledgerFabricNetwork } from '@cdklabs/cdk-hyperledger-fabric-network';

class MyStack extends Stack {
  constructor(scope: Construct, id: string, props?: StackProps) {
    super(scope, id, props);
    new HyperledgerFabricNetwork(this, 'Example', {
      networkName: 'MyNetwork',
      memberName: 'MyMember',
    });
  }
}
```

The equivalent Python code is as follows:

```python
from aws_cdk import Stack
from cdklabs.cdk_hyperledger_fabric_network import HyperledgerFabricNetwork

class MyStack(Stack):
    def __init__(self, scope, id, **kwargs):
        super().__init__(scope, id, **kwargs)
        HyperledgerFabricNetwork(
            self, 'Example',
            network_name='MyNetwork',
            member_name='MyMember',
        )
```

The following is a more complex instantiation illustrating some of the options available.

```python
new HyperledgerFabricNetwork(this, 'Example', {
  networkName: 'MyNetwork',
  networkDescription: 'This is my Hyperledger Fabric network',
  memberName: 'MyMember',
  networkDescription: 'This is my Hyperledger Fabric member',
  frameworkVersion: hyperledger.FrameworkVersion.VERSION_1_2,
  proposalDurationInHours: 48,
  thresholdPercentage: 75,
  nodes: [
    {
      availabilityZone: 'us-east-1a',
      instanceType: hyperledger.InstanceType.STANDARD5_LARGE,
    },
    {
      availabilityZone: 'us-east-1b',
      instanceType: hyperledger.InstanceType.STANDARD5_LARGE,
    },
  ],
  users: [
    { userId: 'AppUser1', affilitation: 'MyMember' },
    { userId: 'AppUser2', affilitation: 'MyMember.department1' },
  ],
});
```

See the [API Documentation](API.md) for details on all available input and output parameters.

## References

* [AWS CDK](https://docs.aws.amazon.com/cdk/v2/guide/home.html)
* [Amazon Managed Blockchain](https://aws.amazon.com/managed-blockchain/)
* [Hyperledger Fabric](https://hyperledger-fabric.readthedocs.io/)
* [Node Fabric SDK](https://hyperledger.github.io/fabric-sdk-node/release-1.4/index.html)
* [Fabric Chaincode Node](https://hyperledger.github.io/fabric-chaincode-node/)

## Contributing

Pull requests are welcomed. Please review the [Contributing Guidelines](CONTRIBUTING.md)
and the [Code of Conduct](CODE_OF_CONDUCT.md).

## Security

See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.

## Authors

* Jud Neer (judneer@amazon.com)
* Vignesh Rajasingh (vrajasin@amazon.com)

## License

This project is licensed under the MIT-0 License. See the [LICENSE](LICENSE) file for details.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cdklabs/cdk-hyperledger-fabric-network.git",
    "name": "cdklabs.cdk-hyperledger-fabric-network",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "~=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Amazon Web Services",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/cf/5b/ead6affa3dd4cbb8ca2697f6d6262b67208476fe3650dea2503520a26afd/cdklabs_cdk_hyperledger_fabric_network-0.8.755.tar.gz",
    "platform": null,
    "description": "# Hyperledger Fabric on Amazon Managed Blockchain\n\n[![license](https://img.shields.io/github/license/cdklabs/cdk-hyperledger-fabric-network?color=green)](https://opensource.org/licenses/MIT)\n[![release](https://img.shields.io/github/v/release/cdklabs/cdk-hyperledger-fabric-network?color=green)](https://github.com/cdklabs/cdk-hyperledger-fabric-network/releases)\n[![npm:version](https://img.shields.io/npm/v/@cdklabs/cdk-hyperledger-fabric-network?color=blue)](https://www.npmjs.com/package/@cdklabs/cdk-hyperledger-fabric-network)\n[![PyPi:version](https://img.shields.io/pypi/v/cdklabs.cdk-hyperledger-fabric-network?color=blue)](https://pypi.org/project/cdklabs.cdk-hyperledger-fabric-network/)\n[![Maven:version](https://img.shields.io/maven-central/v/io.github.cdklabs/cdk-hyperledger-fabric-network?color=blue&label=maven)](https://central.sonatype.dev/artifact/io.github.cdklabs/cdk-hyperledger-fabric-network/0.8.147)\n[![NuGet:version](https://img.shields.io/nuget/v/Cdklabs.CdkHyperledgerFabricNetwork?color=blue)](https://www.nuget.org/packages/Cdklabs.CdkHyperledgerFabricNetwork)\n\nThis repository contains a CDK construct to deploy a Hyperledger Fabric network\nrunning on Amazon Managed Blockchain. It builds out a member and its nodes, a VPC\nand associated endpoint to access them, and a set of users enrolled on the network.\n\nThe following functionality is planned for future releases:\n\n* Create channels on nodes\n* Instantiate chaincode on nodes\n\n## Installation\n\nNote that this construct requires [AWS CDK v2](https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html#getting_started_install).\n\n#### JavaScript\n\n```bash\nnpm install --save @cdklabs/cdk-hyperledger-fabric-network\n```\n\n#### Python\n\n```bash\npip3 install cdklabs.cdk-hyperledger-fabric-network\n```\n\n#### Java\n\nAdd the following to `pom.xml`:\n\n```xml\n<dependency>\n  <groupId>io.github.cdklabs</groupId>\n  <artifactId>cdk-hyperledger-fabric-network</artifactId>\n</dependency>\n```\n\n#### .NET\n\n```bash\ndotnet add package Cdklabs.CdkHyperledgerFabricNetwork\n```\n\n## Usage\n\nA minimally complete deployment is shown below. By default, a standard network\nwill be created running Hyperledger Fabric 1.4 with a single `bc.t3.small` node.\n\n```python\nimport { Stack, StackProps } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport { HyperledgerFabricNetwork } from '@cdklabs/cdk-hyperledger-fabric-network';\n\nclass MyStack extends Stack {\n  constructor(scope: Construct, id: string, props?: StackProps) {\n    super(scope, id, props);\n    new HyperledgerFabricNetwork(this, 'Example', {\n      networkName: 'MyNetwork',\n      memberName: 'MyMember',\n    });\n  }\n}\n```\n\nThe equivalent Python code is as follows:\n\n```python\nfrom aws_cdk import Stack\nfrom cdklabs.cdk_hyperledger_fabric_network import HyperledgerFabricNetwork\n\nclass MyStack(Stack):\n    def __init__(self, scope, id, **kwargs):\n        super().__init__(scope, id, **kwargs)\n        HyperledgerFabricNetwork(\n            self, 'Example',\n            network_name='MyNetwork',\n            member_name='MyMember',\n        )\n```\n\nThe following is a more complex instantiation illustrating some of the options available.\n\n```python\nnew HyperledgerFabricNetwork(this, 'Example', {\n  networkName: 'MyNetwork',\n  networkDescription: 'This is my Hyperledger Fabric network',\n  memberName: 'MyMember',\n  networkDescription: 'This is my Hyperledger Fabric member',\n  frameworkVersion: hyperledger.FrameworkVersion.VERSION_1_2,\n  proposalDurationInHours: 48,\n  thresholdPercentage: 75,\n  nodes: [\n    {\n      availabilityZone: 'us-east-1a',\n      instanceType: hyperledger.InstanceType.STANDARD5_LARGE,\n    },\n    {\n      availabilityZone: 'us-east-1b',\n      instanceType: hyperledger.InstanceType.STANDARD5_LARGE,\n    },\n  ],\n  users: [\n    { userId: 'AppUser1', affilitation: 'MyMember' },\n    { userId: 'AppUser2', affilitation: 'MyMember.department1' },\n  ],\n});\n```\n\nSee the [API Documentation](API.md) for details on all available input and output parameters.\n\n## References\n\n* [AWS CDK](https://docs.aws.amazon.com/cdk/v2/guide/home.html)\n* [Amazon Managed Blockchain](https://aws.amazon.com/managed-blockchain/)\n* [Hyperledger Fabric](https://hyperledger-fabric.readthedocs.io/)\n* [Node Fabric SDK](https://hyperledger.github.io/fabric-sdk-node/release-1.4/index.html)\n* [Fabric Chaincode Node](https://hyperledger.github.io/fabric-chaincode-node/)\n\n## Contributing\n\nPull requests are welcomed. Please review the [Contributing Guidelines](CONTRIBUTING.md)\nand the [Code of Conduct](CODE_OF_CONDUCT.md).\n\n## Security\n\nSee [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.\n\n## Authors\n\n* Jud Neer (judneer@amazon.com)\n* Vignesh Rajasingh (vrajasin@amazon.com)\n\n## License\n\nThis project is licensed under the MIT-0 License. See the [LICENSE](LICENSE) file for details.\n",
    "bugtrack_url": null,
    "license": "MIT-0",
    "summary": "CDK construct to deploy a Hyperledger Fabric network running on Amazon Managed Blockchain",
    "version": "0.8.755",
    "project_urls": {
        "Homepage": "https://github.com/cdklabs/cdk-hyperledger-fabric-network.git",
        "Source": "https://github.com/cdklabs/cdk-hyperledger-fabric-network.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "08879f79d39ce4e5142765b68a1a5f249c2a5eb15077cd6828f1f20026174d37",
                "md5": "0091220af2f252b478225a6a2c1222bc",
                "sha256": "117d6abbe97d1903b5575b148ff63aa296dbf59ae03bced1418e3e15997dc6b3"
            },
            "downloads": -1,
            "filename": "cdklabs.cdk_hyperledger_fabric_network-0.8.755-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0091220af2f252b478225a6a2c1222bc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.8",
            "size": 72769,
            "upload_time": "2024-12-24T00:24:24",
            "upload_time_iso_8601": "2024-12-24T00:24:24.574219Z",
            "url": "https://files.pythonhosted.org/packages/08/87/9f79d39ce4e5142765b68a1a5f249c2a5eb15077cd6828f1f20026174d37/cdklabs.cdk_hyperledger_fabric_network-0.8.755-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cf5bead6affa3dd4cbb8ca2697f6d6262b67208476fe3650dea2503520a26afd",
                "md5": "12069cc3005d772711b91cc4adbb2c6c",
                "sha256": "2542dea9ce76320efcbff1b76beb018409cf5de65a0f1d3c0e9f395fd27dbca4"
            },
            "downloads": -1,
            "filename": "cdklabs_cdk_hyperledger_fabric_network-0.8.755.tar.gz",
            "has_sig": false,
            "md5_digest": "12069cc3005d772711b91cc4adbb2c6c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.8",
            "size": 74146,
            "upload_time": "2024-12-24T00:24:26",
            "upload_time_iso_8601": "2024-12-24T00:24:26.133331Z",
            "url": "https://files.pythonhosted.org/packages/cf/5b/ead6affa3dd4cbb8ca2697f6d6262b67208476fe3650dea2503520a26afd/cdklabs_cdk_hyperledger_fabric_network-0.8.755.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-24 00:24:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cdklabs",
    "github_project": "cdk-hyperledger-fabric-network",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cdklabs.cdk-hyperledger-fabric-network"
}
        
Elapsed time: 0.42970s