⚠️ Before running the following commands, please get AWS credentials.
Execute command belows to deploy resources via Terraform.
$ git clone https://github.com/klaytn/klayspray.git
$ cd klayspray
$ export TF_OPTIONS="-chdir=terraform/aws/private-layer1"
$ terraform $TF_OPTIONS init
$ terraform $TF_OPTIONS apply -auto-approve
terraform output will be shown like the below.
layer1 = {
cn = [
{
"instance_id" = "<instance-id>"
"private_ip" = "<private-ip>"
"public_ip" = "<public-ip>"
},
...
]
en = [
{
"instance_id" = "<instance-id>"
"private_ip" = "<private-ip>"
"public_ip" = "<public-ip>"
},
]
pn = [
{
"instance_id" = "<instance-id>"
"private_ip" = "<private-ip>"
"public_ip" = "<public-ip>"
},
...
]
monitor = {
"instance_id" = "<instance-id>"
"private_ip" = "<private-ip>"
"public_ip" = "<public-ip>"
}
layer1_sg_id = "<security-group-id>"
monitor_sg_id = "<security-group-id>"
}
You can check two files in the root path of klayspray.
- private-ssh-key.pem: a file to use via SSH
- inventory/private-layer1/inventory.ini: a file storing Klaytn node connection information
$ ansible-playbook -i inventory/private-layer1/inventory.ini private-layer1.yaml
Open http://:3000 in the webbrowser. The default credential is admin:admin.