Manage generic upstreams via the Cloudsmith Terraform provider

We’ve added support for generic upstreams to the Cloudsmith Terraform provider. This update allows customers to automate the proxying and caching of any file-based asset - such as raw binaries or scripts - directly via Infrastructure as Code.

By setting the upstream_type to generic within the cloudsmith_repository_upstream resource, you can integrate external file sources into your supply chain with consistent, repeatable configurations.

Resource configuration

resource "cloudsmith_repository_upstream" "gradle_distributions" {
    name            = "Gradle Distributions"
    namespace       = "${data.cloudsmith_organization.my_organization.slug_perm}"
    repository      = "${resource.cloudsmith_repository.my_repository.slug_perm}"
    upstream_type   = "generic"
    upstream_url    = "https://services.gradle.org"
    upstream_prefix = "distributions"
}

View our documentation for more details on the new generic format and upstreams.

Keep up to date with our monthly product bulletin