published on Tuesday, May 26, 2026 by Pulumi
published on Tuesday, May 26, 2026 by Pulumi
Creates a virtual Nix repository that aggregates local and remote Nix repositories behind a single URL. See Nix repositories.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as artifactory from "@pulumi/artifactory";
const local = new artifactory.LocalNixRepository("local", {key: "nix-local"});
const remote = new artifactory.RemoteNixRepository("remote", {
key: "nix-remote",
url: "https://cache.nixos.org",
});
const nix = new artifactory.VirtualNixRepository("nix", {
key: "nix-virtual",
repositories: [
local.key,
remote.key,
],
});
import pulumi
import pulumi_artifactory as artifactory
local = artifactory.LocalNixRepository("local", key="nix-local")
remote = artifactory.RemoteNixRepository("remote",
key="nix-remote",
url="https://cache.nixos.org")
nix = artifactory.VirtualNixRepository("nix",
key="nix-virtual",
repositories=[
local.key,
remote.key,
])
package main
import (
"github.com/pulumi/pulumi-artifactory/sdk/v8/go/artifactory"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
local, err := artifactory.NewLocalNixRepository(ctx, "local", &artifactory.LocalNixRepositoryArgs{
Key: pulumi.String("nix-local"),
})
if err != nil {
return err
}
remote, err := artifactory.NewRemoteNixRepository(ctx, "remote", &artifactory.RemoteNixRepositoryArgs{
Key: pulumi.String("nix-remote"),
Url: pulumi.String("https://cache.nixos.org"),
})
if err != nil {
return err
}
_, err = artifactory.NewVirtualNixRepository(ctx, "nix", &artifactory.VirtualNixRepositoryArgs{
Key: pulumi.String("nix-virtual"),
Repositories: pulumi.StringArray{
local.Key,
remote.Key,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Artifactory = Pulumi.Artifactory;
return await Deployment.RunAsync(() =>
{
var local = new Artifactory.LocalNixRepository("local", new()
{
Key = "nix-local",
});
var remote = new Artifactory.RemoteNixRepository("remote", new()
{
Key = "nix-remote",
Url = "https://cache.nixos.org",
});
var nix = new Artifactory.VirtualNixRepository("nix", new()
{
Key = "nix-virtual",
Repositories = new[]
{
local.Key,
remote.Key,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.artifactory.LocalNixRepository;
import com.pulumi.artifactory.LocalNixRepositoryArgs;
import com.pulumi.artifactory.RemoteNixRepository;
import com.pulumi.artifactory.RemoteNixRepositoryArgs;
import com.pulumi.artifactory.VirtualNixRepository;
import com.pulumi.artifactory.VirtualNixRepositoryArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var local = new LocalNixRepository("local", LocalNixRepositoryArgs.builder()
.key("nix-local")
.build());
var remote = new RemoteNixRepository("remote", RemoteNixRepositoryArgs.builder()
.key("nix-remote")
.url("https://cache.nixos.org")
.build());
var nix = new VirtualNixRepository("nix", VirtualNixRepositoryArgs.builder()
.key("nix-virtual")
.repositories(
local.key(),
remote.key())
.build());
}
}
resources:
local:
type: artifactory:LocalNixRepository
properties:
key: nix-local
remote:
type: artifactory:RemoteNixRepository
properties:
key: nix-remote
url: https://cache.nixos.org
nix:
type: artifactory:VirtualNixRepository
properties:
key: nix-virtual
repositories:
- ${local.key}
- ${remote.key}
pulumi {
required_providers {
artifactory = {
source = "pulumi/artifactory"
}
}
}
resource "artifactory_localnixrepository" "local" {
key = "nix-local"
}
resource "artifactory_remotenixrepository" "remote" {
key = "nix-remote"
url = "https://cache.nixos.org"
}
resource "artifactory_virtualnixrepository" "nix" {
key = "nix-virtual"
repositories = [artifactory_localnixrepository.local.key, artifactory_remotenixrepository.remote.key]
}
Create VirtualNixRepository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualNixRepository(name: string, args: VirtualNixRepositoryArgs, opts?: CustomResourceOptions);@overload
def VirtualNixRepository(resource_name: str,
args: VirtualNixRepositoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualNixRepository(resource_name: str,
opts: Optional[ResourceOptions] = None,
key: Optional[str] = None,
artifactory_requests_can_retrieve_remote_artifacts: Optional[bool] = None,
default_deployment_repo: Optional[str] = None,
description: Optional[str] = None,
excludes_pattern: Optional[str] = None,
includes_pattern: Optional[str] = None,
notes: Optional[str] = None,
project_environments: Optional[Sequence[str]] = None,
project_key: Optional[str] = None,
repo_layout_ref: Optional[str] = None,
repositories: Optional[Sequence[str]] = None)func NewVirtualNixRepository(ctx *Context, name string, args VirtualNixRepositoryArgs, opts ...ResourceOption) (*VirtualNixRepository, error)public VirtualNixRepository(string name, VirtualNixRepositoryArgs args, CustomResourceOptions? opts = null)
public VirtualNixRepository(String name, VirtualNixRepositoryArgs args)
public VirtualNixRepository(String name, VirtualNixRepositoryArgs args, CustomResourceOptions options)
type: artifactory:VirtualNixRepository
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "artifactory_virtualnixrepository" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VirtualNixRepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VirtualNixRepositoryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VirtualNixRepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualNixRepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualNixRepositoryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var virtualNixRepositoryResource = new Artifactory.VirtualNixRepository("virtualNixRepositoryResource", new()
{
Key = "string",
ArtifactoryRequestsCanRetrieveRemoteArtifacts = false,
DefaultDeploymentRepo = "string",
Description = "string",
ExcludesPattern = "string",
IncludesPattern = "string",
Notes = "string",
ProjectEnvironments = new[]
{
"string",
},
ProjectKey = "string",
RepoLayoutRef = "string",
Repositories = new[]
{
"string",
},
});
example, err := artifactory.NewVirtualNixRepository(ctx, "virtualNixRepositoryResource", &artifactory.VirtualNixRepositoryArgs{
Key: pulumi.String("string"),
ArtifactoryRequestsCanRetrieveRemoteArtifacts: pulumi.Bool(false),
DefaultDeploymentRepo: pulumi.String("string"),
Description: pulumi.String("string"),
ExcludesPattern: pulumi.String("string"),
IncludesPattern: pulumi.String("string"),
Notes: pulumi.String("string"),
ProjectEnvironments: pulumi.StringArray{
pulumi.String("string"),
},
ProjectKey: pulumi.String("string"),
RepoLayoutRef: pulumi.String("string"),
Repositories: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "artifactory_virtualnixrepository" "virtualNixRepositoryResource" {
key = "string"
artifactory_requests_can_retrieve_remote_artifacts = false
default_deployment_repo = "string"
description = "string"
excludes_pattern = "string"
includes_pattern = "string"
notes = "string"
project_environments = ["string"]
project_key = "string"
repo_layout_ref = "string"
repositories = ["string"]
}
var virtualNixRepositoryResource = new VirtualNixRepository("virtualNixRepositoryResource", VirtualNixRepositoryArgs.builder()
.key("string")
.artifactoryRequestsCanRetrieveRemoteArtifacts(false)
.defaultDeploymentRepo("string")
.description("string")
.excludesPattern("string")
.includesPattern("string")
.notes("string")
.projectEnvironments("string")
.projectKey("string")
.repoLayoutRef("string")
.repositories("string")
.build());
virtual_nix_repository_resource = artifactory.VirtualNixRepository("virtualNixRepositoryResource",
key="string",
artifactory_requests_can_retrieve_remote_artifacts=False,
default_deployment_repo="string",
description="string",
excludes_pattern="string",
includes_pattern="string",
notes="string",
project_environments=["string"],
project_key="string",
repo_layout_ref="string",
repositories=["string"])
const virtualNixRepositoryResource = new artifactory.VirtualNixRepository("virtualNixRepositoryResource", {
key: "string",
artifactoryRequestsCanRetrieveRemoteArtifacts: false,
defaultDeploymentRepo: "string",
description: "string",
excludesPattern: "string",
includesPattern: "string",
notes: "string",
projectEnvironments: ["string"],
projectKey: "string",
repoLayoutRef: "string",
repositories: ["string"],
});
type: artifactory:VirtualNixRepository
properties:
artifactoryRequestsCanRetrieveRemoteArtifacts: false
defaultDeploymentRepo: string
description: string
excludesPattern: string
includesPattern: string
key: string
notes: string
projectEnvironments:
- string
projectKey: string
repoLayoutRef: string
repositories:
- string
VirtualNixRepository Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VirtualNixRepository resource accepts the following input properties:
- Key string
- Repository key.
- Artifactory
Requests boolCan Retrieve Remote Artifacts - Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
- Default
Deployment stringRepo - Default repository to deploy artifacts.
- Description string
- Public description.
- Excludes
Pattern string - List of artifact patterns to exclude when evaluating artifact requests, in the form of
x/y/**/z/*.By default no artifacts are excluded. - Includes
Pattern string - List of comma-separated artifact patterns to include when evaluating artifact requests in the form of
x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*). - Notes string
- Internal description.
- Project
Environments List<string> - Before Artifactory 7.53.1, up to 2 values (
DEVandPROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update. - Project
Key string - Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- Repo
Layout stringRef - Repository layout reference. Defaults to
nix-defaultwhen unset. - Repositories List<string>
- Ordered list of repository keys included in the virtual repository.
- Key string
- Repository key.
- Artifactory
Requests boolCan Retrieve Remote Artifacts - Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
- Default
Deployment stringRepo - Default repository to deploy artifacts.
- Description string
- Public description.
- Excludes
Pattern string - List of artifact patterns to exclude when evaluating artifact requests, in the form of
x/y/**/z/*.By default no artifacts are excluded. - Includes
Pattern string - List of comma-separated artifact patterns to include when evaluating artifact requests in the form of
x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*). - Notes string
- Internal description.
- Project
Environments []string - Before Artifactory 7.53.1, up to 2 values (
DEVandPROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update. - Project
Key string - Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- Repo
Layout stringRef - Repository layout reference. Defaults to
nix-defaultwhen unset. - Repositories []string
- Ordered list of repository keys included in the virtual repository.
- key string
- Repository key.
- artifactory_
requests_ boolcan_ retrieve_ remote_ artifacts - Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
- default_
deployment_ stringrepo - Default repository to deploy artifacts.
- description string
- Public description.
- excludes_
pattern string - List of artifact patterns to exclude when evaluating artifact requests, in the form of
x/y/**/z/*.By default no artifacts are excluded. - includes_
pattern string - List of comma-separated artifact patterns to include when evaluating artifact requests in the form of
x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*). - notes string
- Internal description.
- project_
environments list(string) - Before Artifactory 7.53.1, up to 2 values (
DEVandPROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update. - project_
key string - Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- repo_
layout_ stringref - Repository layout reference. Defaults to
nix-defaultwhen unset. - repositories list(string)
- Ordered list of repository keys included in the virtual repository.
- key String
- Repository key.
- artifactory
Requests BooleanCan Retrieve Remote Artifacts - Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
- default
Deployment StringRepo - Default repository to deploy artifacts.
- description String
- Public description.
- excludes
Pattern String - List of artifact patterns to exclude when evaluating artifact requests, in the form of
x/y/**/z/*.By default no artifacts are excluded. - includes
Pattern String - List of comma-separated artifact patterns to include when evaluating artifact requests in the form of
x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*). - notes String
- Internal description.
- project
Environments List<String> - Before Artifactory 7.53.1, up to 2 values (
DEVandPROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update. - project
Key String - Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- repo
Layout StringRef - Repository layout reference. Defaults to
nix-defaultwhen unset. - repositories List<String>
- Ordered list of repository keys included in the virtual repository.
- key string
- Repository key.
- artifactory
Requests booleanCan Retrieve Remote Artifacts - Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
- default
Deployment stringRepo - Default repository to deploy artifacts.
- description string
- Public description.
- excludes
Pattern string - List of artifact patterns to exclude when evaluating artifact requests, in the form of
x/y/**/z/*.By default no artifacts are excluded. - includes
Pattern string - List of comma-separated artifact patterns to include when evaluating artifact requests in the form of
x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*). - notes string
- Internal description.
- project
Environments string[] - Before Artifactory 7.53.1, up to 2 values (
DEVandPROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update. - project
Key string - Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- repo
Layout stringRef - Repository layout reference. Defaults to
nix-defaultwhen unset. - repositories string[]
- Ordered list of repository keys included in the virtual repository.
- key str
- Repository key.
- artifactory_
requests_ boolcan_ retrieve_ remote_ artifacts - Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
- default_
deployment_ strrepo - Default repository to deploy artifacts.
- description str
- Public description.
- excludes_
pattern str - List of artifact patterns to exclude when evaluating artifact requests, in the form of
x/y/**/z/*.By default no artifacts are excluded. - includes_
pattern str - List of comma-separated artifact patterns to include when evaluating artifact requests in the form of
x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*). - notes str
- Internal description.
- project_
environments Sequence[str] - Before Artifactory 7.53.1, up to 2 values (
DEVandPROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update. - project_
key str - Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- repo_
layout_ strref - Repository layout reference. Defaults to
nix-defaultwhen unset. - repositories Sequence[str]
- Ordered list of repository keys included in the virtual repository.
- key String
- Repository key.
- artifactory
Requests BooleanCan Retrieve Remote Artifacts - Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
- default
Deployment StringRepo - Default repository to deploy artifacts.
- description String
- Public description.
- excludes
Pattern String - List of artifact patterns to exclude when evaluating artifact requests, in the form of
x/y/**/z/*.By default no artifacts are excluded. - includes
Pattern String - List of comma-separated artifact patterns to include when evaluating artifact requests in the form of
x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*). - notes String
- Internal description.
- project
Environments List<String> - Before Artifactory 7.53.1, up to 2 values (
DEVandPROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update. - project
Key String - Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- repo
Layout StringRef - Repository layout reference. Defaults to
nix-defaultwhen unset. - repositories List<String>
- Ordered list of repository keys included in the virtual repository.
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualNixRepository resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing VirtualNixRepository Resource
Get an existing VirtualNixRepository resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VirtualNixRepositoryState, opts?: CustomResourceOptions): VirtualNixRepository@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
artifactory_requests_can_retrieve_remote_artifacts: Optional[bool] = None,
default_deployment_repo: Optional[str] = None,
description: Optional[str] = None,
excludes_pattern: Optional[str] = None,
includes_pattern: Optional[str] = None,
key: Optional[str] = None,
notes: Optional[str] = None,
project_environments: Optional[Sequence[str]] = None,
project_key: Optional[str] = None,
repo_layout_ref: Optional[str] = None,
repositories: Optional[Sequence[str]] = None) -> VirtualNixRepositoryfunc GetVirtualNixRepository(ctx *Context, name string, id IDInput, state *VirtualNixRepositoryState, opts ...ResourceOption) (*VirtualNixRepository, error)public static VirtualNixRepository Get(string name, Input<string> id, VirtualNixRepositoryState? state, CustomResourceOptions? opts = null)public static VirtualNixRepository get(String name, Output<String> id, VirtualNixRepositoryState state, CustomResourceOptions options)resources: _: type: artifactory:VirtualNixRepository get: id: ${id}import {
to = artifactory_virtualnixrepository.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Artifactory
Requests boolCan Retrieve Remote Artifacts - Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
- Default
Deployment stringRepo - Default repository to deploy artifacts.
- Description string
- Public description.
- Excludes
Pattern string - List of artifact patterns to exclude when evaluating artifact requests, in the form of
x/y/**/z/*.By default no artifacts are excluded. - Includes
Pattern string - List of comma-separated artifact patterns to include when evaluating artifact requests in the form of
x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*). - Key string
- Repository key.
- Notes string
- Internal description.
- Project
Environments List<string> - Before Artifactory 7.53.1, up to 2 values (
DEVandPROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update. - Project
Key string - Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- Repo
Layout stringRef - Repository layout reference. Defaults to
nix-defaultwhen unset. - Repositories List<string>
- Ordered list of repository keys included in the virtual repository.
- Artifactory
Requests boolCan Retrieve Remote Artifacts - Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
- Default
Deployment stringRepo - Default repository to deploy artifacts.
- Description string
- Public description.
- Excludes
Pattern string - List of artifact patterns to exclude when evaluating artifact requests, in the form of
x/y/**/z/*.By default no artifacts are excluded. - Includes
Pattern string - List of comma-separated artifact patterns to include when evaluating artifact requests in the form of
x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*). - Key string
- Repository key.
- Notes string
- Internal description.
- Project
Environments []string - Before Artifactory 7.53.1, up to 2 values (
DEVandPROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update. - Project
Key string - Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- Repo
Layout stringRef - Repository layout reference. Defaults to
nix-defaultwhen unset. - Repositories []string
- Ordered list of repository keys included in the virtual repository.
- artifactory_
requests_ boolcan_ retrieve_ remote_ artifacts - Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
- default_
deployment_ stringrepo - Default repository to deploy artifacts.
- description string
- Public description.
- excludes_
pattern string - List of artifact patterns to exclude when evaluating artifact requests, in the form of
x/y/**/z/*.By default no artifacts are excluded. - includes_
pattern string - List of comma-separated artifact patterns to include when evaluating artifact requests in the form of
x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*). - key string
- Repository key.
- notes string
- Internal description.
- project_
environments list(string) - Before Artifactory 7.53.1, up to 2 values (
DEVandPROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update. - project_
key string - Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- repo_
layout_ stringref - Repository layout reference. Defaults to
nix-defaultwhen unset. - repositories list(string)
- Ordered list of repository keys included in the virtual repository.
- artifactory
Requests BooleanCan Retrieve Remote Artifacts - Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
- default
Deployment StringRepo - Default repository to deploy artifacts.
- description String
- Public description.
- excludes
Pattern String - List of artifact patterns to exclude when evaluating artifact requests, in the form of
x/y/**/z/*.By default no artifacts are excluded. - includes
Pattern String - List of comma-separated artifact patterns to include when evaluating artifact requests in the form of
x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*). - key String
- Repository key.
- notes String
- Internal description.
- project
Environments List<String> - Before Artifactory 7.53.1, up to 2 values (
DEVandPROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update. - project
Key String - Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- repo
Layout StringRef - Repository layout reference. Defaults to
nix-defaultwhen unset. - repositories List<String>
- Ordered list of repository keys included in the virtual repository.
- artifactory
Requests booleanCan Retrieve Remote Artifacts - Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
- default
Deployment stringRepo - Default repository to deploy artifacts.
- description string
- Public description.
- excludes
Pattern string - List of artifact patterns to exclude when evaluating artifact requests, in the form of
x/y/**/z/*.By default no artifacts are excluded. - includes
Pattern string - List of comma-separated artifact patterns to include when evaluating artifact requests in the form of
x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*). - key string
- Repository key.
- notes string
- Internal description.
- project
Environments string[] - Before Artifactory 7.53.1, up to 2 values (
DEVandPROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update. - project
Key string - Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- repo
Layout stringRef - Repository layout reference. Defaults to
nix-defaultwhen unset. - repositories string[]
- Ordered list of repository keys included in the virtual repository.
- artifactory_
requests_ boolcan_ retrieve_ remote_ artifacts - Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
- default_
deployment_ strrepo - Default repository to deploy artifacts.
- description str
- Public description.
- excludes_
pattern str - List of artifact patterns to exclude when evaluating artifact requests, in the form of
x/y/**/z/*.By default no artifacts are excluded. - includes_
pattern str - List of comma-separated artifact patterns to include when evaluating artifact requests in the form of
x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*). - key str
- Repository key.
- notes str
- Internal description.
- project_
environments Sequence[str] - Before Artifactory 7.53.1, up to 2 values (
DEVandPROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update. - project_
key str - Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- repo_
layout_ strref - Repository layout reference. Defaults to
nix-defaultwhen unset. - repositories Sequence[str]
- Ordered list of repository keys included in the virtual repository.
- artifactory
Requests BooleanCan Retrieve Remote Artifacts - Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
- default
Deployment StringRepo - Default repository to deploy artifacts.
- description String
- Public description.
- excludes
Pattern String - List of artifact patterns to exclude when evaluating artifact requests, in the form of
x/y/**/z/*.By default no artifacts are excluded. - includes
Pattern String - List of comma-separated artifact patterns to include when evaluating artifact requests in the form of
x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*). - key String
- Repository key.
- notes String
- Internal description.
- project
Environments List<String> - Before Artifactory 7.53.1, up to 2 values (
DEVandPROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update. - project
Key String - Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- repo
Layout StringRef - Repository layout reference. Defaults to
nix-defaultwhen unset. - repositories List<String>
- Ordered list of repository keys included in the virtual repository.
Import
Repositories can be imported using the repository key, for example:
$ pulumi import artifactory:index/virtualNixRepository:VirtualNixRepository nix nix-virtual
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- artifactory pulumi/pulumi-artifactory
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
artifactoryTerraform Provider.
published on Tuesday, May 26, 2026 by Pulumi