Terraforms

Create a terraform

post/environment/{environmentId}/terraform

Request

Request body

namestring required
descriptionstring required
auto_approveboolean required
auto_deployboolean required
provider'TERRAFORM' required
timeout_secinteger
icon_uristring uri
use_cluster_credentialsboolean
action_extra_argumentsobject

The key represent the action command name i.e: "plan" The value represent the extra arguments to pass to this command

i.e: {"apply", ["-lock=false"]} is going to prepend -lock=false to terraform apply commands

Example request

{
  "job_resources": {
    "gpu": 1
  }
}

Response

Create terraform

idstring uuid required
created_atstring date-time required
updated_atstring date-time
namestring required

name is case insensitive

descriptionstring
timeout_secinteger required
auto_approveboolean required
auto_deployboolean required
icon_uristring uri required

Icon URI representing the terraform service.

service_type'APPLICATION' | 'DATABASE' | 'CONTAINER' | 'JOB' | 'HELM' | 'TERRAFORM' required

type of the service (application, database, job, ...)

provider'TERRAFORM' required
use_cluster_credentialsboolean required
action_extra_argumentsobject required

The key represent the action command name i.e: "plan" The value represent the extra arguments to pass to this command

i.e: {"apply", ["-lock=false"]} is going to prepend -lock=false to terraform apply commands

Example response

{
  "terraform_files_source": {
    "git": {
      "git_repository": {
        "owner": "John Doe",
        "name": "simple-node-app",
        "deployed_commit_tag": "v1.0.1"
      }
    }
  },
  "job_resources": {
    "gpu": 1
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.