page_title | subcategory | description |
---|---|---|
morpheus_instance_type Resource - terraform-provider-morpheus |
Provides a Morpheus instance type resource |
Provides a Morpheus instance type resource
resource "morpheus_instance_type" "tf_example_instance_type" {
name = "tf_example_instance"
code = "tf_example_instance"
description = "Terraform Example Instance Type"
labels = ["demo", "instance", "terraform"]
category = "web"
visibility = "private"
image_path = "tfexample.png"
image_name = "tfexample.png"
featured = false
enable_deployments = true
enable_scaling = true
enable_settings = true
environment_prefix = "TFEXAMPLE_DEMO"
option_type_ids = [1910, 1912]
evar {
name = "first"
value = "first"
export = true
}
evar {
name = "second"
masked_value = "second"
export = false
}
}
category
(String) The instance type category (web, sql, nosql, apps, network, messaging, cache, os, cloud, utility)code
(String) The instance type codename
(String) The name of the instance typevisibility
(String) The visibility of the instance type (public or private)
description
(String) The description of the instance typeenable_deployments
(Boolean) Whether to enable deployments for the instance typeenable_scaling
(Boolean) Whether to enable scaling for the instance typeenable_settings
(Boolean) Whether to enable settings for the instance typeenvironment_prefix
(String) The prefix used for instance environment variablesevar
(Block List) The environment variables to create (see below for nested schema)featured
(Boolean) Whether the instance type is marked as featuredimage_name
(String) The file name of the instance type logo imageimage_path
(String) The file path of the instance type logo image including the file namelabels
(Set of String) The organization labels associated with the script template (Only supported on Morpheus 5.5.3 or higher)option_type_ids
(List of Number) The IDs of the inputs to associate with the instance typeprice_set_ids
(List of Number) A list of price set ids associated with the instance type
id
(String) The ID of the instance type
Optional:
export
(Boolean) Whether the environment variable is exported as an instance tagmasked_value
(String, Sensitive) The environment variable value when the value needs to be maskedname
(String) The name of the environment variablevalue
(String) The environment variable value when the value can be in plaintext
Import is supported using the following syntax:
terraform import morpheus_instance_type.tf_example_instance_type 1