Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 2.91 KB

CLI_CreateGCPDestination.md

File metadata and controls

60 lines (45 loc) · 2.91 KB

Copyright (c) 2022, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Configure a Google Cloud Platform Publishing Destination

Note: Before you can use the models plug-in CLI to create a publishing destination, you must complete the prerequisites in the README.md file.

To list the models plug-in CLI help for the destination create commands, use one of the following commands:

sas-viya models destination create --help
sas-viya models destination createGCP --help

For more information about the models plug-in CLI commands and options, see SAS Viya: Models Command-Line Interface.

Here are some examples of using the models plug-in to the SAS Viya CLI to create a Google Cloud Platform publishing destination.

Note: For the following CLI examples, you will be prompted to enter a service account and credential in JSON format after the command is submitted.

Example 1: Create a Google Cloud Platform Destination

sas-viya models destination create --type gcp --name GCPDemo 
--identityId SASAdministrators --identityType group --baseRepoURL "gcr.io/solorgasub7" 
--kubernetesCluster edmtestpub-gke --clusterLocation us-east1-b --credDomainID domainGCP 
--validationNamespace default

OR

sas-viya models destination createGCP --name GCPDemo 
--identityId SASAdministrators --identityType group --baseRepoURL "gcr.io/myserviceaccount" 
--kubernetesCluster edmtestpub-gke --clusterLocation us-east1-b --credDomainID domainGCP 
--validationNamespace default

Example 2: Create a Google Cloud Platform Destination with Git Support

sas-viya models destination createGCP --name GCPDemo 
--identityId SASAdministrators --identityType group --baseRepoURL gcr.io/myserviceaccount 
--kubernetesCluster edmtestpub-gke --clusterLocation us-east1-b 
--serviceAccount [email protected] --credDomainID domainGCP 
--validationNamespace default --remoteRepoURL https://gitlab.myserver.com/sasdemo/sasdemo.git  --gitUserEmail [email protected]
--gitUserId sasdemo --gitAccessToken D4bPHJvByqSFnxGBrQ73 --deploymentGitFolder /deploymentTest

Example 3: Create a Google Cloud Platform Destination with Git and Database Support

sas-viya models destination createGCP --name GCPDemo 
--identityId SASAdministrators --identityType group --baseRepoURL gcr.io/myserviceaccount 
--kubernetesCluster edmtestpub-gke --clusterLocation us-east1-b 
--serviceAccount [email protected] --credDomainID domainGCP 
--validationNamespace default --remoteRepoURL https://gitlab.myserver.com/sasdemo/sasdemo.git  --gitUserEmail [email protected]
--gitUserId sasdemo --gitAccessToken D4bPHJvByqSFnxGBrQ73 
--dbSecret oracle-secret-decision --dbConfigMap oracle-config