CDK construct to deploy an Ethereum node running on Amazon Managed Blockchain
Project description
Ethereum on Amazon Managed Blockchain
This repository contains a CDK construct to deploy an Ethereum node running on Amazon Managed Blockchain. The following networks are supported:
- Mainnet (default)
- Testnet: Goerli
- Testnet: Rinkeby
- Testnet: Ropsten
Installation
Note that this construct requires AWS CDK v2.
JavaScript
npm install --save @cdklabs/cdk-ethereum-node
Python
pip3 install cdklabs.cdk-ethereum-node
Java
Add the following to pom.xml
:
<dependency>
<groupId>io.github.cdklabs</groupId>
<artifactId>cdk-ethereum-node</artifactId>
</dependency>
.NET
dotnet add package Cdklabs.CdkEthereumNode
Usage
A minimally complete deployment is shown below. By default,
a bc.t3.large
node will be created on the Ethereum Mainnet.
import { Stack, StackProps } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { EthereumNode, Network, InstanceType } from '@cdklabs/cdk-ethereum-node';
export class MyStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
new EthereumNode(this, 'Example');
}
}
The equivalent Python code is as follows:
from aws_cdk import Stack
from cdklabs.cdk_ethereum_node import EthereumNode
class MyStack(Stack):
def __init__(self, scope, id, **kwargs):
super().__init__(scope, id, **kwargs)
EthereumNode(self, 'Example')
The following is a more complex instantiation illustrating some of the node configuration options available.
new EthereumNode(this, 'Example', {
network: Network.ROPSTEN,
availabilityZone: 'us-east-1b',
instanceType: InstanceType.BURSTABLE3_LARGE,
});
See the API Documentation for details on all available input and output parameters.
References
Contributing
Pull requests are welcomed. Please review the Contributing Guidelines and the Code of Conduct.
Security
See CONTRIBUTING for more information.
Authors
- Trinity Key (trinikey@amazon.com)
- Marc Gozali (gozalim@amazon.com)
License
This project is licensed under the MIT-0 License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cdklabs.cdk-ethereum-node-0.0.448.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8364b165da6609acee172b4e2cde1ff05b55a833fa4377a07b3971d697a30b5f |
|
MD5 | a516f37caaea500c12f1af67bccf1822 |
|
BLAKE2b-256 | bb62236c07633c2a4cd25ba3c01e68aedb23723642daf0c155d3f5bbfcfa9fd4 |
Hashes for cdklabs.cdk_ethereum_node-0.0.448-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec6bbb158230c6f25541761bf42d415b5e37027ee1245ae28f3152be63b3c465 |
|
MD5 | 9484ad41e55d66d126083424be39ff33 |
|
BLAKE2b-256 | 69ab931ab04dabb6bd085e37ed3da1bfdfa397d80436d3e20f07feb4d6ad6e4b |