Skip to main content

CDK construct to deploy an Ethereum node running on Amazon Managed Blockchain

Project description

Ethereum on Amazon Managed Blockchain

license release npm:version PyPi:version Maven:version NuGet:version

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

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

cdklabs.cdk-ethereum-node-0.0.125.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdklabs.cdk_ethereum_node-0.0.125-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file cdklabs.cdk-ethereum-node-0.0.125.tar.gz.

File metadata

File hashes

Hashes for cdklabs.cdk-ethereum-node-0.0.125.tar.gz
Algorithm Hash digest
SHA256 2511a1a71df4f0ce1cba9921b22fd00ffc9327973ada0d81c26142e94ba3dfdb
MD5 a641e91815012d83995f92d1ab49111b
BLAKE2b-256 776de430f9bea173aea72f1efe837a3b56ea7bf54c6e94cac20be91cb117d931

See more details on using hashes here.

File details

Details for the file cdklabs.cdk_ethereum_node-0.0.125-py3-none-any.whl.

File metadata

File hashes

Hashes for cdklabs.cdk_ethereum_node-0.0.125-py3-none-any.whl
Algorithm Hash digest
SHA256 8ccc1cf8ab2eab497e9aa097c436652692d04998e519db1c8132551a3699296b
MD5 f65197747c8986ca7a5a4ca5b8646c08
BLAKE2b-256 8a2f823e94422ad36d8a46a2e2bd207f2e775e4806be524cab14a45b1bb0ff91

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page