This resource provides the Peer resource in Oracle Cloud Infrastructure Blockchain service.
Create Blockchain Platform Peer
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
}
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 parameter
ocpu_allocation_number
- (Required) (Updatable) Number of OCPU allocationrole
- (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
The following attributes are exported:
ad
- Availability Domain of peeralias
- peer aliashost
- Host on which the Peer existsocpu_allocation_param
- OCPU allocation parameter
ocpu_allocation_number
- Number of OCPU allocationpeer_key
- peer identifierrole
- Peer rolestate
- The current state of the peer.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
Peers can be imported using the id
, e.g.
$ terraform import oci_blockchain_peer.test_peer "blockchainPlatforms/{blockchainPlatformId}/peers/{peerId}"