oci_blockchain_peer
This resource provides the Peer resource in Oracle Cloud Infrastructure Blockchain service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/blockchain/latest/Peer
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/blockchain
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:
ad- (Required) Availability Domain to place new peeralias- (Optional) peer aliasblockchain_platform_id- (Required) Unique service identifier.ocpu_allocation_param- (Required) (Updatable) OCPU allocation parameterocpu_allocation_number- (Required) (Updatable) Number of OCPU allocation
role- (Required) Peer role
** 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:
ad- Availability Domain of peeralias- peer aliashost- Host on which the Peer existsocpu_allocation_param- OCPU allocation parameterocpu_allocation_number- Number of OCPU allocation
peer_key- peer identifierrole- Peer rolestate- The current state of the peer.
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}"