Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Submit provider to Terraform Registry #238

Open
doublefelix7 opened this issue Feb 7, 2020 · 5 comments
Open

Submit provider to Terraform Registry #238

doublefelix7 opened this issue Feb 7, 2020 · 5 comments

Comments

@doublefelix7
Copy link

Not an actual issue per say, but more of a request:

I found this Graylog provider to be very useful in our CI workflows. The only wrinkle in setting this up is that we have to reach out and download the provider before doing a terraform init and point the plugin path to some directory where we store the provider binary.

Can you try to submit this to the official Terraform repository so that users of this provider can have the all of the documentation, files, and other info in a single location from Terraform instead of linking back to this repo?

https://www.terraform.io/docs/registry/providers/docs.html

@papezt
Copy link

papezt commented Apr 16, 2020

Hi @suzuki-shunsuke , I would like to ask if you plan to publish to the Terraform registry or not. We would love to use the module and use it from the registry as it's super easy and I would rather see this package published by you than fork it and do own release...

Many thanks for answer!

@suzuki-shunsuke
Copy link
Owner

suzuki-shunsuke commented Apr 17, 2020

@doublefelix7 @papezt

Sorry for late reply.
I want to publish this provider on the official registry, but I don't know how to do it.

I try to publish this provider from https://registry.terraform.io/ .

image

But it seems that we can publish not Terraform provider but Terraform Module from here.

https://registry.terraform.io/github/create

And I can't select this repository due to the repository name's restriction.

image

https://www.terraform.io/docs/registry/modules/publish.html#requirements

Named terraform-<PROVIDER>-<NAME>.
Module repositories must use this three-part name format,
where <NAME> reflects the type of infrastructure the module manages and <PROVIDER> is the main provider where it creates that infrastructure.
The <NAME> segment can contain additional hyphens.
Examples: terraform-google-vault or terraform-aws-ec2-instance.

@suzuki-shunsuke
Copy link
Owner

By the way, a few months ago I requested to add this provider to the community providers list, but there was no reply from Hashicorp...

If you have built a provider and would like to add it to this community list,
please fill out this community providers form.

https://www.terraform.io/docs/providers/type/community-index.html

@doublefelix7
Copy link
Author

@suzuki-shunsuke It looks like your Graylog provider is already on the providers list, but it just links back to this repo.
Somehow, it needs to be included in such a way so that when you run a terraform init, it will automatically retrieve it from Hashicorp's registry.
As of today, you need to manually download the provider binary from this repo, then do a terraform init -plugin-dir=<path to provider> to run it.

@suzuki-shunsuke
Copy link
Owner

It looks like your Graylog provider is already on the providers list

Oh, I didn't know! Thank you!!

I read the issue hashicorp/terraform#15252 ,
and it seems that the official Terraform Registry doesn't support to publish the third party providers yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants