Current Terraform Version
Terraform v1.2.5
on linux_amd64
Use-cases
Using container registries as storage backend for provider and module distribution would empower users to leverage existing infrastructure in scenarios where otherwise a private registry would have to be hosted. There is a rich ecosystem around working with container images which could be used to enable a variety of creative use cases, e.g.:
- Granting authorized access to private modules and providers using existing credentials
- Ease of use - rather than operating a service for a registry, existing SaaS solutions can be used, e.g. GHCR
- Leveraging cloud-provider- or otherwise-provided IAM, ACL, RBAC mechanisms
- Integrating with "container-native" technologies in interesting ways, e.g. cosign
- ...
Attempted Solutions
Originally I was contemplating building an application that implements the Registry API and serves artifacts from a container registry backend, but I've come to realize that directly supporting that sort of functionality inside Terraform itself would make a lot more sense, especially considering the fact that some of the core properties of OCI registries already make them more suitable as a provider/module source than zip files on S3.
Proposal
Facilitate using OCI registries for module and provider distribution/storage.
References
Other projects leveraging the same techniques:
Current Terraform Version
Use-cases
Using container registries as storage backend for provider and module distribution would empower users to leverage existing infrastructure in scenarios where otherwise a private registry would have to be hosted. There is a rich ecosystem around working with container images which could be used to enable a variety of creative use cases, e.g.:
Attempted Solutions
Originally I was contemplating building an application that implements the Registry API and serves artifacts from a container registry backend, but I've come to realize that directly supporting that sort of functionality inside Terraform itself would make a lot more sense, especially considering the fact that some of the core properties of OCI registries already make them more suitable as a provider/module source than zip files on S3.
Proposal
Facilitate using OCI registries for module and provider distribution/storage.
References
go-getterlaying groundwork: Add support for retrieving data from OCI registries go-getter#272Other projects leveraging the same techniques: