resource_remote: add artifactapi_remote_cargo
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user