Creates, updates and destroys no-code module for registry modules.
Basic usage:
resource "tfe_organization" "foobar" {
name = "my-org-name"
email = "admin@company.com"
}
resource "tfe_registry_module" "foobar" {
organization = tfe_organization.foobar.id
module_provider = "my_provider"
name = "test_module"
}
resource "tfe_no_code_module" "foobar" {
organization = tfe_organization.foobar.id
registry_module = tfe_registry_module.foobar.id
}
Creating a no-code module with variable options:
resource "tfe_organization" "foobar" {
name = "my-org-name"
email = "admin@company.com"
}
resource "tfe_registry_module" "foobar" {
organization = tfe_organization.foobar.id
module_provider = "my_provider"
name = "test_module"
}
resource "tfe_no_code_module" "foobar" {
organization = tfe_organization.foobar.id
registry_module = tfe_registry_module.foobar.id
variable_options {
name = "ami"
type = "string"
options = [ "ami-0", "ami-1", "ami-2" ]
}
variable_options {
name = "region"
type = "string"
options = [ "us-east-1", "us-east-2", "us-west-1"]
}
}
The following arguments are supported:
name
- (Required) Name of the variable set.organization
- (Optional) Name of the organization. If omitted, organization must be defined in the provider config.registry_module
- (Required) The ID of the registry module to associate with the no code module.enabled
- (Required) Whether or not no-code module is enabled for the associated registry moduleversion_pin
- (Optional) The version of the module to pin to.variable_options
- (Optional) A list of variable options to associate with the no code module.
name
- (Required) The name of the variable option.type
- (Required) The type of the variable option.options
- (Required) A list of options for the variable option.id
- The ID of the no code module.No-code modules can be imported; use <NO CODE MODULE ID>
as the import ID. For example:
terraform import tfe_no_code_module.test nocode-qV9JnKRkmtMa4zcA