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.
Files

2.8 KiB

page_title, subcategory, description
page_title subcategory description
artifactapi_remote Data Source - artifactapi Read an existing ArtifactAPI remote.

artifactapi_remote (Data Source)

Read an existing ArtifactAPI remote.

Example Usage

# Read the configuration of an existing remote by name.
# All fields (base_url, package_type, TTLs, patterns, etc.) are available
# as computed attributes.
data "artifactapi_remote" "dockerhub" {
  name = "dockerhub"
}

output "dockerhub_base_url" {
  value = data.artifactapi_remote.dockerhub.base_url
}

output "dockerhub_package_type" {
  value = data.artifactapi_remote.dockerhub.package_type
}

Schema

Required

  • name (String) Name of the remote to read.

Read-Only

  • ban_tags (List of String) Banned tags (docker only).
  • ban_tags_enabled (Boolean) Whether tag banning is enabled (docker only).
  • base_url (String) Upstream repository base URL.
  • blocklist (List of String) Paths that are always denied.
  • cache_repodata (Boolean) Whether generated repodata is cached (github_rpm only).
  • check_mutable (Boolean) Whether mutable artifacts are conditionally revalidated.
  • description (String) Human-readable description.
  • immutable_patterns (List of String) Paths forced to be treated as immutable.
  • immutable_ttl (Number) TTL in seconds for immutable artifacts (0 = forever).
  • managed_by (String) What manages the repository (e.g. terraform).
  • mirror_strategy (String) Mirror load-balancing strategy: round_robin or least_conn.
  • mirrorlist (List of String) Extra upstream mirror base URLs (rpm/deb/alpine only).
  • mutable_patterns (List of String) Paths forced to be treated as mutable.
  • mutable_ttl (Number) TTL in seconds for mutable artifacts.
  • package_type (String) Package type of the repository (e.g. docker, helm, rpm).
  • patterns (List of String) Allowlist of paths to proxy (empty = all).
  • quarantine_days (Number) Days new artifacts are quarantined.
  • quarantine_enabled (Boolean) Whether newly published upstream artifacts are quarantined.
  • releases_remote (String) Name of the backend remote that serves download bytes.
  • serve_stale (Boolean) Whether rpm/deb/alpine virtuals serve this member's last good index while it refreshes.
  • stale_on_error (Boolean) Whether stale cached content is served when upstream is unreachable.
  • sync_interval (Number) Release re-scan interval in seconds (github_rpm/github_deb/github_alpine only).
  • upstream_dial_timeout (Number) Upstream TCP connect timeout in seconds (0 = server default).
  • upstream_response_header_timeout (Number) Upstream response-header timeout in seconds (0 = server default).
  • upstream_tls_timeout (Number) Upstream TLS handshake timeout in seconds (0 = server default).