This repository has been archived on 2026-11-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

74 lines
2.0 KiB
Markdown

---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "artifactapi_virtual Resource - artifactapi"
subcategory: ""
description: |-
Manages an ArtifactAPI virtual repository that merges multiple remotes.
---
# artifactapi_virtual (Resource)
Manages an ArtifactAPI virtual repository that merges multiple remotes.
## Example Usage
```terraform
# Helm remotes to be merged into a virtual repository
resource "artifactapi_remote_helm" "jetstack" {
name = "jetstack"
base_url = "https://charts.jetstack.io"
description = "Jetstack Helm charts (cert-manager)"
immutable_ttl = 0
mutable_ttl = 3600
}
resource "artifactapi_remote_helm" "hashicorp_helm" {
name = "hashicorp-helm"
base_url = "https://helm.releases.hashicorp.com"
description = "HashiCorp Helm charts"
immutable_ttl = 0
mutable_ttl = 3600
}
# Virtual repository merges multiple remotes of the same package type
# into a single endpoint. Earlier members have higher priority for
# duplicate entries.
resource "artifactapi_virtual" "helm" {
name = "helm"
package_type = "helm"
description = "All Helm repos merged"
members = [
artifactapi_remote_helm.jetstack.name,
artifactapi_remote_helm.hashicorp_helm.name,
]
}
```
<!-- schema generated by tfplugindocs -->
## Schema
### Required
- `members` (List of String) Ordered list of member remote names. Earlier members have higher priority for duplicate entries.
- `name` (String) Unique name of the virtual repository.
- `package_type` (String) Package type (must match member remotes): helm, pypi.
### Optional
- `description` (String) Human-readable description.
- `parallel_fetch` (Boolean) Fetch each member's index files concurrently.
## Import
Import is supported using the following syntax:
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
```shell
# Import by name.
terraform import artifactapi_virtual.helm helm
```