google_blockchain_node_engine_blockchain_nodes

A representation of a blockchain node.

To get more information about BlockchainNodes, see:

Open in Cloud Shell

Example Usage - Blockchain Nodes Basic

resource "google_blockchain_node_engine_blockchain_nodes" "default_node" {
  location = "us-central1"
  blockchain_type = "ETHEREUM"
  blockchain_node_id = "blockchain_basic_node"
  ethereum_details {
    api_enable_admin = true
    api_enable_debug = true
    validator_config {
      mev_relay_urls = ["https://mev1.example.org/","https://mev2.example.org/"]
    }
    node_type = "ARCHIVE"
    consensus_client = "LIGHTHOUSE"
    execution_client = "ERIGON"
    network = "MAINNET"
  }

  labels = {
    environment = "dev"
  }
}
Open in Cloud Shell

Example Usage - Blockchain Nodes Geth Details

resource "google_blockchain_node_engine_blockchain_nodes" "default_node_geth" {
  location = "us-central1"
  blockchain_type = "ETHEREUM"
  blockchain_node_id = "blockchain_geth_node"
  ethereum_details {
    api_enable_admin = true
    api_enable_debug = true
    validator_config {
      mev_relay_urls = ["https://mev1.example.org/","https://mev2.example.org/"]
    }
    node_type = "FULL"
    consensus_client = "LIGHTHOUSE"
    execution_client = "GETH"
    network = "MAINNET"
    geth_details {
      garbage_collection_mode = "FULL"
    }
  }

  labels = {
    environment = "dev"
  }
}

Argument Reference

The following arguments are supported:


The ethereum_details block supports:

The validator_config block supports:

The geth_details block supports:

The additional_endpoints block contains:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

The connection_info block contains:

The endpoint_info block contains:

Timeouts

This resource provides the following Timeouts configuration options:

Import

BlockchainNodes can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import BlockchainNodes using one of the formats above. For example:

import {
  id = "projects/{{project}}/locations/{{location}}/blockchainNodes/{{blockchain_node_id}}"
  to = google_blockchain_node_engine_blockchain_nodes.default
}

When using the terraform import command, BlockchainNodes can be imported using one of the formats above. For example:

$ terraform import google_blockchain_node_engine_blockchain_nodes.default projects/{{project}}/locations/{{location}}/blockchainNodes/{{blockchain_node_id}}
$ terraform import google_blockchain_node_engine_blockchain_nodes.default {{project}}/{{location}}/{{blockchain_node_id}}
$ terraform import google_blockchain_node_engine_blockchain_nodes.default {{location}}/{{blockchain_node_id}}

User Project Overrides

This resource supports User Project Overrides.