Files
terraform-provider-artifactapi/examples/resources/artifactapi_remote_vcs/main.tf
T

27 lines
720 B
Terraform

terraform {
required_providers {
artifactapi = {
source = "artifactapi.example.com/terraform-unkin/artifactapi"
version = "0.0.1"
}
}
}
provider "artifactapi" {
endpoint = "https://artifactapi.example.com"
}
# VCS remote caches GitHub/Gitea source archives and release assets.
# Tag, commit and release paths are immutable; branch archives redirect to
# the archive of the branch's current commit, re-resolved after mutable_ttl.
resource "artifactapi_remote_vcs" "github" {
name = "github-vcs"
base_url = "https://github.com"
description = "GitHub source archives and release assets"
immutable_ttl = 0
mutable_ttl = 600
patterns = ["^cli/cli/", "^psf/requests/"]
}