Skip to content

insight-w3f/terraform-polkadot-gcp-node

Repository files navigation

terraform-polkadot-gcp-node

open-issues open-pr build-status

Features

This module...

Terraform Versions

For Terraform v0.12.0+

Usage

module "this" {
    source = "github.com/insight-w3f/terraform-polkadot-gcp-node"

}

Examples

Known Issues

No issue is creating limit on this module.

Requirements

No requirements.

Providers

Name Version
google n/a

Inputs

Name Description Type Default Required
chain Which Polkadot chain to join string "kusama" no
create Boolean to make module or not bool true no
create_eip Boolean to create elastic IP bool false no
environment The environment string "" no
instance_type Instance type string "n1-standard-1" no
key_name The name of the preexisting key to be used instead of the local public_key_path string "" no
logging_filter String for polkadot logging filter string "sync=trace,afg=trace,babe=debug" no
monitoring Boolean for cloudwatch bool false no
namespace The namespace to deploy into string "" no
network_name The network name, ie kusama / mainnet string "" no
node_exporter_hash SHA256 hash of Node Exporter binary string "b2503fd932f85f4e5baf161268854bf5d22001869b84f00fd2d1f57b51b72424" no
node_exporter_password Password for node exporter string "node_exporter_password" no
node_exporter_url URL to Node Exporter binary string "https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz" no
node_exporter_user User for node exporter string "node_exporter_user" no
node_name Name of the node string "" no
owner Owner of the infrastructure string "" no
polkadot_client_hash SHA256 hash of Polkadot client binary string "c34d63e5d80994b2123a3a0b7c5a81ce8dc0f257ee72064bf06654c2b93e31c9" no
polkadot_client_url URL to Polkadot client binary string "https://github.com/w3f/polkadot/releases/download/v0.7.32/polkadot" no
private_key_path The path to the private ssh key string "" no
private_subnet_id The id of the private subnet string n/a yes
project Name of the project for node name string "project" no
public_key_path The path to the public ssh key string "" no
public_subnet_id The id of the public subnet string n/a yes
relay_node_ip Internal IP of Polkadot relay node string "" no
relay_node_p2p_address P2P address of Polkadot relay node string "" no
root_volume_size Root volume size string 0 no
security_group_id The id of the security group to run in string n/a yes
stage The stage of the deployment string "" no
telemetry_url WSS URL for telemetry string "wss://mi.private.telemetry.backend/" no
zone The GCP zone to deploy in string "us-east1-b" no

Outputs

Name Description
instance_id n/a
private_ip n/a
private_subnet_id n/a
public_ip n/a
public_subnet_id n/a
security_group_id n/a
user_data n/a

Testing

This module has been packaged with terratest tests

To run them:

  1. Install Go
  2. Run make test-init from the root of this repo
  3. Run make test again from root

Authors

Module managed by Richard Mah

Credits

License

Apache 2 Licensed. See LICENSE for full details.