Creating a Remote Peering Connection
Create a new remote peering connection (RPC) for a specified DRG.
To establish remote peering, each administrator creates an RPC object for their own VCN's DRG, which includes a DRG attachment with the RPC type. "You" in the following procedure means an administrator (either the acceptor or requestor).
Required IAM Policy to Create RPCs
If the administrators already have broad network administrator permissions (see Let network admins manage a cloud network), then they have permission to create, update, and delete RPCs. Otherwise, here's an example policy giving the necessary permissions to a group called RPCAdmins. The second statement is required because creating an RPC affects the DRG it belongs to, so the administrator must have permission to manage DRGs.
Allow group RPCAdmins to manage remote-peering-connections in tenancy
Allow group RPCAdmins to manage drgs in tenancy
Use the network remote-peering-connection create command and required parameters to create a new RPC for a specified DRG:
oci network remote-peering-connection create --compartment-id compartment-ocid --drg-id drg-ocid ... [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateRemotePeeringConnection operation to create a new RPC for a specified DRG.