terraform-provider-graylog / terraform-provider-graylog

Terraform Provider for Graylog
https://registry.terraform.io/providers/terraform-provider-graylog/graylog/latest/docs
MIT License
22 stars 31 forks source link

Publish to Terraform Registry #34

Closed zahiar closed 4 years ago

zahiar commented 4 years ago

Have you considered publishing this provider to the Terraform Registry ( https://registry.terraform.io/browse/providers?tier=official%2Ccommunity ), would make it soo much easier for everyone to use, no more having to download & install it manually :)

suzuki-shunsuke commented 4 years ago

@zahiar Thank you for your feedback. Unfortunately, publishing the custom provider seems to be closed beta yet. https://www.hashicorp.com/blog/announcing-the-terraform-0-13-beta/

image

zahiar commented 4 years ago

@suzuki-shunsuke Thanks for taking a look - hopefully one day soon we'll have your provider in the registry! :)

tboerger commented 4 years ago

Yes please register for the new registry, that would improve the provider installation a lot!

suzuki-shunsuke commented 4 years ago

I found that we can publish the provider to the Terraform Registry if our request is approved. I'll try it.

The terraform-provider-graylog organization has not completed the provider publishing application process.

In order to begin publishing providers to the Terraform Registry: Send an email to terraform-registry@hashicorp.com with a description of the Terraform providers you would like to publish. Provide us with a GPG Public Key (in ASCII-Armor format) for the keypair you will use to sign the provider releases. Once your application is approved, you can use this screen to publish Terraform providers to the Terraform Registry. For more information, read our documentation on Publishing Terraform Providers to the Terraform Registry

image

suzuki-shunsuke commented 4 years ago

I did the following actions according to the document https://www.terraform.io/docs/registry/providers/publishing.html .

Now I'm waiting for the response from HashiCorp.

suzuki-shunsuke commented 4 years ago

Hi folks,

I have a good news. My request was approved and this provider was published to the Terraform Registry 🎉 🎉 🎉

https://registry.terraform.io/providers/terraform-provider-graylog/graylog

We can read this provider's document at the registry.

https://registry.terraform.io/providers/terraform-provider-graylog/graylog/latest/docs

The document is work in progress so I'll update it later.

And using Terraform v0.13, we can install this provider from the Terraform registry.

terraform {
  required_providers {
    graylog = {
      source = "terraform-provider-graylog/graylog"
      version = "1.0.3-1"
    }
  }
}
$ terraform init

Initializing the backend...

Initializing provider plugins...
- Finding terraform-provider-graylog/graylog versions matching "1.0.3-1"...
- Installing terraform-provider-graylog/graylog v1.0.3-1...
- Installed terraform-provider-graylog/graylog v1.0.3-1 (self-signed, key ID DB205F1CE2708DF8)

Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/plugins/signing.html

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

$ terraform version
Terraform v0.13.0-rc1
+ provider registry.terraform.io/terraform-provider-graylog/graylog v1.0.3-1

Note that the Terraform v0.13 and publishing the third party provider to the Terraform Registry is still beta.

Thank you.

suzuki-shunsuke commented 4 years ago

The old version of this provider can't be installed from the Terraform Registry because they aren't signed by GPG. I'll release v1.0.3 later.

suzuki-shunsuke commented 4 years ago

I have released v1.0.3. I'll close this issue few days later if there is no problem.