tfe_no_code_module

Creates, updates and destroys no-code module for registry modules.

Example Usage

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"]
    }
}

Argument Reference

The following arguments are supported:

Attributes Reference

Import

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