salrashid123 / terraform-provider-http-full

Terraform HTTP provider with mTLS and JSON POST support
Apache License 2.0
13 stars 4 forks source link

Publish to Terraform Provider Registry #1

Closed dutsmiller closed 3 years ago

dutsmiller commented 3 years ago

Would it be possible to publish this to the terraform provider registry? This would make it much easier to consume.

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

salrashid123 commented 3 years ago

just published here

https://registry.terraform.io/providers/salrashid123/http-full/latest

terraform {
  required_providers {
    http-full = {
      source = "salrashid123/http-full"
      version = "1.0.0"
    }
  }
}

provider "http-full" {
}

data "http" "example" {
  provider = http-full
  url = "https://httpbin.org/post"
  request_headers = {
    content-type = "application/json"
  }
  request_body = {
    foo = "bar"
    bar = "bar"
  }
}

output "data" {
  value = jsondecode(data.http.example.body)
}
dutsmiller commented 3 years ago

Thanks so much!