oci_blockchain_peer

This resource provides the Peer resource in Oracle Cloud Infrastructure Blockchain service.

Create Blockchain Platform Peer

Example Usage

resource "oci_blockchain_peer" "test_peer" {
	#Required
	ad = var.peer_ad
	blockchain_platform_id = oci_blockchain_blockchain_platform.test_blockchain_platform.id
	ocpu_allocation_param {
		#Required
		ocpu_allocation_number = var.peer_ocpu_allocation_param_ocpu_allocation_number
	}
	role = var.peer_role

	#Optional
	alias = var.peer_alias
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 30 minutes), when creating the Peer * update - (Defaults to 30 minutes), when updating the Peer * delete - (Defaults to 30 minutes), when destroying the Peer

Import

Peers can be imported using the id, e.g.

$ terraform import oci_blockchain_peer.test_peer "blockchainPlatforms/{blockchainPlatformId}/peers/{peerId}"