Files
terraform-provider-artifactapi/examples/data-sources/artifactapi_remote/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

28 lines
636 B
Terraform

terraform {
required_providers {
artifactapi = {
source = "artifactapi.example.com/terraform-unkin/artifactapi"
version = "0.0.1"
}
}
}
provider "artifactapi" {
endpoint = "https://artifactapi.example.com"
}
# 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
}