create-deployment

Description

Create a deployment. And after done it, link to execute pert by create-service command

Synopsis

$ abeja model create-deployment [--help]
Usage: abeja model create-deployment [OPTIONS]

  Deploy a specific model

Options:
  -n, --name TEXT                 Deployment name  [required]
  -m, --model_id TEXT             Model identifier  [required]
  -e, --environment ENVIRONMENTSTRING
                                  Default environment variable
  --help                          Show this message and exit.

Options

-n, --name

Specify distinguished name for model. And it is okay if duplicate with the distinguished name for deployment that already exist.

-m, --model_id

Specify model_id created on create-model.

-e, --environment

Specify environment variable of deployment
For more information on user-specifiable environment variables, see here.

Example

Create deployment

This example shows the creation of the deployment.

Command:

$ abeja model create-deployment --name <value> --model_id <value> --environment <value>

Output:

{
  "created_at": "2017-09-01T00:00:00.000000Z",
  "deployment_id": "3456789012345",
  "model_id": "1234567890123",
  "modified_at": "2017-09-01T00:00:00.000000Z",
  "name": "default",
  "environment": {
      "USER_ID": "1234567890123",
      "ACCESS_KEY": "373be7309f0146c0d283440e500843d8"
  }
}