okustera_artifactory_repository (Resource)
The okustera_artifactory_repository resource provisions and manages multi-format package repositories within Okustera's Artifact Registry. It supports local hosted registries, upstream caching mirrors, and virtual aggregated repositories for Docker/OCI images, Helm charts, Python packages, npm modules, and Maven artifacts.
Example Usage
Private Docker Container Registry
resource "okustera_artifactory_repository" "docker_repo" {
name = "corporate-images"
format = "docker"
type = "local"
description = "Primary hosted container registry for backend microservices"
is_public = false
}
Upstream PyPI Proxy Cache
resource "okustera_artifactory_repository" "pypi_mirror" {
name = "pypi-proxy"
format = "pypi"
type = "remote"
upstream_url = "https://pypi.org/simple"
description = "Caching proxy for Python package distributions"
is_public = true
}
Schema
Required
name(String) Unique repository name.format(String) Package format:docker,helm,npm,pypi,maven, orgeneric.
Optional
type(String) Repository type:local(hosted storage),remote(upstream caching proxy), orvirtual(aggregated view). Defaults tolocal.description(String) Human-readable repository description.upstream_url(String) Remote source URL for proxy repositories.is_public(Boolean) Allows unauthenticated read and pull access when set totrue. Defaults tofalse.
Read-Only Attributes
id(String) Unique repository identifier.artifact_count(Number) Total count of artifacts currently stored or cached.size_bytes(Number) Total storage consumption of the repository in bytes.created_at(String) ISO-8601 creation timestamp.
Import
Existing repositories can be imported using their name:
terraform import okustera_artifactory_repository.docker_repo corporate-images