Connect to a Specific Instance of VMware Cloud on AWS

By default, commands run on the public instance of VMware Cloud on AWS.

You can establish a connection to a specific instance by using the Connect-Vmc cmdlet.

Prerequisites

Use the developer center and the API explorer to identify the domain names for the VMware Cloud services platform and the VMware Cloud on AWS service that you want to target.

Procedure

  1. Create an OAuth security context for the target instance of the VMware Cloud services platform.
    $oauthSecContext = New-VcsOAuthSecurityContext -VcsServer "VMware Cloud service FQDN" -ApiToken "Your API token"
  2. Connect to the target instance of VMware Cloud on AWS by specifying its domain name.
    Connect-Vmc -Server "VMware Cloud on AWS service FQDN" -OAuthSecurityContext $oauthSecContext