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
File details
Details for the file cdklabs_cdk_ethereum_node-0.0.626.tar.gz
.
File metadata
- Download URL: cdklabs_cdk_ethereum_node-0.0.626.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f39ec760977f9c2fba4163400c7e163baaac957b189379cc161e3322c5c7b10 |
|
MD5 | 15b5baf589ba37ac624a460c0c942ed6 |
|
BLAKE2b-256 | 47f19e7328e0b98bceb81d49196e6a4481ef5ba3e45e778ce81e47a6c978221e |
File details
Details for the file cdklabs.cdk_ethereum_node-0.0.626-py3-none-any.whl
.
File metadata
- Download URL: cdklabs.cdk_ethereum_node-0.0.626-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8bdb575b7e016fad2327efb0f5d646174cb50c2f9fba917b62cd366b6c6cc79 |
|
MD5 | f3a315d6ee7236f82794cd5ac875b49e |
|
BLAKE2b-256 | 21773bd72b3e5bedee482884e7302dcfd737249d15327c771f0422ccca20d381 |