|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "harness_platform_infra_module_testing Resource - terraform-provider-harness" |
| 4 | +subcategory: "Next Gen" |
| 5 | +description: |- |
| 6 | + Resource for managing Terraform/Tofu Modules. |
| 7 | +--- |
| 8 | + |
| 9 | +# harness_platform_infra_module_testing (Resource) |
| 10 | + |
| 11 | +Resource for managing Terraform/Tofu Modules. |
| 12 | + |
| 13 | +## Example Usage |
| 14 | + |
| 15 | +```terraform |
| 16 | +resource "harness_platform_infra_module" "example" { |
| 17 | + module_id = 1234 |
| 18 | + org = "default" |
| 19 | + project = "project" |
| 20 | + provider_connector = "account.connector" |
| 21 | + provisioner_type = "tofu" |
| 22 | + provisioner_version = "1.9.4" |
| 23 | + pipelines = [ |
| 24 | + "pipelinea", |
| 25 | + "pipelineb" |
| 26 | + ] |
| 27 | +} |
| 28 | +``` |
| 29 | + |
| 30 | +<!-- schema generated by tfplugindocs --> |
| 31 | +## Schema |
| 32 | + |
| 33 | +### Required |
| 34 | + |
| 35 | +- `module_id` (String) Identifier of the module to enable testing for |
| 36 | +- `org` (String) Organization identifier |
| 37 | +- `pipelines` (List of String) List of pipeline IDs to create webhooks for triggering test executions |
| 38 | +- `project` (String) Project identifier |
| 39 | +- `provider_connector` (String) Provider connector for testing purposes |
| 40 | +- `provisioner_type` (String) Provisioner type for testing purposes (e.g., terraform, tofu) |
| 41 | +- `provisioner_version` (String) Provisioner version for testing purposes |
| 42 | + |
| 43 | +### Optional |
| 44 | + |
| 45 | +- `release_pipeline` (String) Pipeline ID to create webhooks for releases |
| 46 | +- `testing_enabled` (Boolean) Whether testing is enabled for the module |
| 47 | +- `testing_metadata` (Block List, Max: 1) Testing metadata for the module (see [below for nested schema](#nestedblock--testing_metadata)) |
| 48 | +- `updated` (Number) Timestamp when the module was last modified |
| 49 | +- `versions` (List of String) Versions of the module |
| 50 | + |
| 51 | +### Read-Only |
| 52 | + |
| 53 | +- `account` (String) Account that owns the module |
| 54 | +- `created` (Number) Timestamp when the module was created |
| 55 | +- `description` (String) Description of the module |
| 56 | +- `git_tag_style` (String) Git Tag Style |
| 57 | +- `id` (String) The ID of this resource. |
| 58 | +- `module_error` (String) Error while retrieving the module |
| 59 | +- `name` (String) Name of the module |
| 60 | +- `repository` (String) For account connectors, the repository where the module is stored |
| 61 | +- `repository_branch` (String) Repository Branch in which the module should be accessed |
| 62 | +- `repository_commit` (String) Repository Commit in which the module should be accessed |
| 63 | +- `repository_connector` (String) Repository Connector is the reference to the connector for the repository |
| 64 | +- `repository_path` (String) Repository Path is the path in which the module resides |
| 65 | +- `repository_url` (String) URL where the module is stored |
| 66 | +- `synced` (Number) Timestamp when the module was last synced |
| 67 | +- `system` (String) Provider of the module |
| 68 | +- `tags` (String) Tags associated with the module |
| 69 | + |
| 70 | +<a id="nestedblock--testing_metadata"></a> |
| 71 | +### Nested Schema for `testing_metadata` |
| 72 | + |
| 73 | +Optional: |
| 74 | + |
| 75 | +- `account` (String) Account is the internal customer account ID |
| 76 | +- `org` (String) Organization identifier |
| 77 | +- `pipelines` (List of String) Pipelines where the testing is enabled |
| 78 | +- `project` (String) Project identifier |
| 79 | +- `provider_connector` (String) Provider connector for testing purposes |
| 80 | +- `provisioner_type` (String) Provisioner type for testing purposes |
| 81 | +- `provisioner_version` (String) Provisioner version for testing purposes |
| 82 | +- `release_pipeline` (String) Release pipeline |
| 83 | + |
| 84 | +## Import |
| 85 | + |
| 86 | +Import is supported using the following syntax: |
| 87 | + |
| 88 | +The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example: |
| 89 | + |
| 90 | +```shell |
| 91 | +terraform import harness_platform_infra_module_testing.example <module_id> |
| 92 | +``` |
0 commit comments