Terraforms

Clone terraform

This will create a new terraform with the same configuration on the targeted environment Id.

post/terraform/{terraformId}/clone

Request

Path parameters

terraformIdstring uuid required

Terraform ID

Request body

namestring required
environment_idstring uuid required

Response

Terraform clone has been requested

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.