24 lines
571 B
Terraform
24 lines
571 B
Terraform
terraform {
|
|
required_providers {
|
|
artifactapi = {
|
|
source = "artifactapi.example.com/terraform-unkin/artifactapi"
|
|
version = "0.0.1"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "artifactapi" {
|
|
endpoint = "https://artifactapi.example.com"
|
|
}
|
|
|
|
# Go module proxy remote proxies a Go module proxy.
|
|
# The provider knows @v/list is mutable; .zip, .mod, and .info files are immutable.
|
|
resource "artifactapi_remote_goproxy" "goproxy" {
|
|
name = "goproxy"
|
|
base_url = "https://proxy.golang.org"
|
|
description = "Go module proxy"
|
|
|
|
immutable_ttl = 0
|
|
mutable_ttl = 300
|
|
}
|