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.

Terraform Provider ArtifactAPI

The ArtifactAPI provider manages repositories on an ArtifactAPI server: local repositories that host packages directly, remotes that cache an upstream (Docker, Helm, PyPI, npm, RPM, Deb, Alpine, Go, Terraform, GitHub releases and more), and virtual repositories that merge several remotes behind one endpoint. It works with Terraform and OpenTofu.

Quick start

Prebuilt provider archives are on the releases page.

terraform {
  required_providers {
    artifactapi = {
      source = "IUCLabs/artifactapi"
    }
  }
}

provider "artifactapi" {
  endpoint = "https://artifactapi.example.com"
  # token defaults to the ARTIFACTAPI_TOKEN environment variable
}

resource "artifactapi_remote_docker" "dockerhub" {
  name        = "dockerhub"
  base_url    = "https://registry-1.docker.io"
  mutable_ttl = 300
}

resource "artifactapi_local_rpm" "internal" {
  name = "rpm-internal"
}

All resources can be imported by name, e.g. terraform import artifactapi_remote_docker.dockerhub dockerhub.

Requirements

Building

make build
make test
make docs    # regenerate docs/ from the schema and examples/

Documentation

See docs/ for the provider, resource and data source reference, and examples/ for usage.

License

MIT

S
Description
Terraform provider for managing ArtifactAPI
Readme MIT 1.3 MiB
Languages
Go 99%
Makefile 0.8%
Shell 0.2%