This module includes provisions an EC2 with a blockchain server installed, including the following:
module "bitcoin_node" {
source = "git::https://github.com/NFhbar/aws-blockchain-module"
instance_count = "${var.instance_count}"
name = "${var.name}-${var.environment}"
ami = "${var.ami}"
instance_type = "${var.instance_type}"
vpc_id = "${var.vpc.vpc_id}"
cidr_blocks = "${var.vpc.vpc_cidr_block}"
subnet = "${var.vpc.public_subnets[0]}"
blockchain = "${var.blockchain}"
blockchain_port = "${var.blockchain_port}"
testnet = "${var.testnet}"
size = "${var.size}"
ssh = "${var.ssh}"
sshkey = "${var.ssh_key}"
user = "${var.user}"
pass = "${var.pass}"
}This module installs a specific blockchain using the templates files in templates. Currently only bitcoin is supported.
See an example usage in examples.
Tests are run using Terratest.
To run the test suite:
$ dep init
$ dep ensure -vendor-only
$ cd test/ && go test -v