24 lines
556 B
Terraform
24 lines
556 B
Terraform
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
|
|
}
|