Global InfraGlobal Infra Cloud
Artifactory

Remote Repository

Terraform reference for Remote Repository.

Schema Properties

PropertyTypeDescription
assumed_offline_period_seconds
integerWindow after which the upstream is considered offline (default 300).
block_mismatching_mime_types
booleanReject upstream responses whose MIME type doesn't match the expected format.
bypass_head_requests
booleanSkip HEAD requests against the upstream (workaround for non-compliant proxies).
description
stringFree-form description of the repository.
disable_proxy
booleanWhen true, force the remote to bypass any proxy even if proxy is set.
docker_options
objectDocker-specific options. Ignored when package_type != docker.
excludes_pattern
stringArtefact exclude pattern. Defaults to empty.
hard_fail
booleanWhen true, a 5xx from the upstream is propagated as a hard failure.
includes_pattern
stringArtefact include pattern. Defaults to **/* when omitted.
key
Computed
stringFully qualified repository key. Computed at create time.
list_remote_folder_items
booleanAllow browsing of upstream folders. Anti-DoS recommendation: keep false.
maven_options
objectMaven/Gradle-specific options. Ignored when package_type is neither maven nor gradle.
missed_retrieval_cache_period_seconds
integerNegative-result cache TTL in seconds (default 1800).
name
Required
stringShort repository name (e.g. `adoptium`, `centos`, `pypi-public`).
Examples:adoptium
offline
booleanWhen true, the remote serves only its cache (no upstream fetch).
package_type
Required
stringPackage type stored in this repository (rpm, npm, docker, maven, ...).
password
stringPassword used to authenticate against the upstream URL.
proxy
stringRegistered outbound proxy key (e.g. proxy-infra) to use for upstream calls.
repo_layout_ref
stringRepository layout reference. Auto-discovered from package_type when omitted.
retrieval_cache_period_seconds
integerMetadata TTL in seconds (default 7200).
rpm_options
objectRPM-specific options. Ignored when package_type != rpm.
scope
Required
stringScope tag appended to the key (dev / ci / release).
socket_timeout_millis
integerConnection timeout in milliseconds (default 15000).
store_artifacts_locally
booleanWhen true, fetched artefacts are cached locally (default true).
synchronize_properties
booleanPropagate repository properties to the upstream when caching.
url
Required
stringUpstream URL proxied by this remote repository (e.g. https://repo1.maven.org/maven2).
Examples:https://repo1.maven.org/maven2
username
stringUsername used to authenticate against the upstream URL.
vault_secret_id
stringOptional secret asset id whose `username` / `password` entries are read at create time and applied to this remote. Takes precedence over the inline username/password fields when both are set.
resource "gi_artifactory_remote_repository" "example" {  attributes = {    name         = "adoptium"    package_type = "example-package_type"    scope        = "example-scope"    url          = "https://repo1.maven.org/maven2"  }}

Usage Notes