Files
terraform-provider-artifactapi/examples/resources/artifactapi_remote_generic/main.tf
T
unkin-agent b3a897cc20
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
use placeholder host in docs and examples
2026-10-17 15:40:14 +11:00

35 lines
851 B
Terraform

terraform {
required_providers {
artifactapi = {
source = "artifactapi.example.com/terraform-unkin/artifactapi"
version = "0.0.1"
}
}
}
provider "artifactapi" {
endpoint = "https://artifactapi.example.com"
}
# A generic remote proxies arbitrary HTTP endpoints.
# Patterns act as an allowlist; everything matching is immutable by default.
resource "artifactapi_remote_generic" "github" {
name = "github"
base_url = "https://github.com"
description = "GitHub releases"
immutable_ttl = 0
mutable_ttl = 7200
patterns = [
"ducaale/xh/.*/xh-.*-x86_64-unknown-linux-musl.tar.gz$",
"mikefarah/yq/.*/yq_linux_amd64$",
"neovim/neovim-releases/.*/nvim-linux-x86_64.tar.gz$",
]
# Override: branch archives are mutable
mutable_patterns = [
".*/archive/refs/heads/.*\\.tar\\.gz$",
]
}