resource_remote: add artifactapi_remote_cargo

This commit is contained in:
2026-10-09 19:39:11 +11:00
parent 74a3c39c3b
commit 1a5fdcfd72
6 changed files with 30 additions and 1 deletions
@@ -0,0 +1,23 @@
terraform {
required_providers {
artifactapi = {
source = "git.unkin.net/unkin/artifactapi"
version = "0.0.1"
}
}
}
provider "artifactapi" {
endpoint = "https://artifactapi.example.com"
}
# Cargo remote proxies a crates.io sparse registry.
# The provider knows index files are mutable; .crate downloads are immutable.
resource "artifactapi_remote_cargo" "crates_io" {
name = "crates-io"
base_url = "https://index.crates.io"
description = "crates.io sparse registry"
immutable_ttl = 0
mutable_ttl = 300
}