Skip to content

Latest commit

 

History

History
176 lines (88 loc) · 4.08 KB

example-aws.md

File metadata and controls

176 lines (88 loc) · 4.08 KB

Example: set up custom network on AWS

See "Custom network with NO initial database state, with subnet-evm" for the full commands.

Write the configuration file with some default values:

example-aws/01

example-aws/02


Then apply the configuration:

example-aws/03

example-aws/04


Wait for anchor nodes to be ready:

example-aws/05

example-aws/06


Check your S3 bucket for generated artifacts (all private keys are encrypted using KMS/envelope encryption):

example-aws/07


Check the anchor nodes:

example-aws/08

example-aws/09

example-aws/10

example-aws/11

example-aws/12


Check non-anchor nodes created in a separate Auto Scaling Groups:

example-aws/13

example-aws/14


Check how non-anchor nodes discovered other anchor nodes and publish non-anchor nodes information:

example-aws/15

example-aws/16

example-aws/17

example-aws/18


Check logs and metrics from nodes are being published:

example-aws/19

example-aws/20


Now that the network is ready, check the metrics and health URL (or access via public IPv4 address):

example-aws/21

example-aws/22

example-aws/23

example-aws/24


Now the custom network is ready! Check out the genesis file:

example-aws/25

example-aws/26


To interact with C-chain via MetaMask, add the DNS RPC endpoint as a custom network as follows:

example-aws/27

example-aws/28

example-aws/29

Or use Core wallet:

example-aws/core-1

example-aws/core-2

example-aws/core-3


Import the test keys for pre-funded wallets:

example-aws/30

example-aws/31

example-aws/32

example-aws/33


Optional: install subnet-evm in the custom network

To set up subnet-evm, use subnet-cli to add two non-anchor nodes as validators:

example-aws/34

example-aws/35

To create a custom blockchain for subnet-evm:

example-aws/36

example-aws/37

Restart the nodes with the tracked subnet ID as instructed (this will be automated in future avalanche-ops releases):

example-aws/38

example-aws/39

example-aws/40

example-aws/41

To add subnet-evm network to MetaMask, use the newly created blockchain ID for RPC endpoints:

example-aws/42

Note that the existing test keys are pre-funded (as in C-chain):

example-aws/43

To look at the subnet-vm logs:

example-aws/44

example-aws/45


To shut down the network, run avalancheup-aws delete command:

example-aws/46

example-aws/47

example-aws/48