Skip to content

avinava-mycelium/terraform-gcp-chainlinknode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform module for Chainlink nodes

This module is used to create GCP resources to support Chainlink IAC setups.

Usage implementation

See the chainlink nodes for a usage example.

Inputs

Name Description Type Default Required
access_config Access configurations, i.e. IPs via which the VM instance can be accessed via the Internet.
list(object({
nat_ip = string
network_tier = string
}))
[] no
add_hostname_suffix Adds a suffix to the hostname bool true no
hostname Hostname of instances string "" no
instance_template Instance template self_link used to create compute instances any n/a no
network Network to deploy to. Only one of network or subnetwork should be specified. string "" no
num_instances Number of instances to create. This value is ignored if static_ips is provided. string "1" no
region Region where the instances should be created. string us-central1 no
static_ips List of static IPs for VM instances list(string) [] no
subnetwork Subnet to deploy to. Only one of network or subnetwork should be specified. string "" no
subnetwork_project The project that subnetwork belongs to string "" no
zone Zone where the instances should be created. If not specified, instances will be spread across available zones in the region. string us-central1-a no
machine_type Machine configuration for CPU and Memory. string `` yes
node_name Name of CL node. string `` yes
node_type Type of CL node. string `` yes
project_id Project ID in GCP for the code to be deployed. string `` yes

Outputs

Name Description
disk_names The boot disk name of the node
instance_name The name of the VM instance holding the node
disk_size The disk size allocated to the node
gcs_startup_script The private bucket location for the startup script of the node
external_ip_addresses The static public IP address of the node
external_ip_names The static public IP name of the node
internal_ip_addresses The internal static IP address of the node
internal_ip_names The internal static IP names of the node