Copyright (c) 2022, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
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.
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
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
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