terraform-provider-http icon indicating copy to clipboard operation
terraform-provider-http copied to clipboard

Enhancement: post output as JSON to URL

Open ghost opened this issue 6 years ago • 1 comments
trafficstars

This issue was originally opened by @MarcelT-NL as hashicorp/terraform#23389. It was migrated here as a result of the provider split. The original body of the issue is below.


Current Terraform Version

0.12.14

Use-cases

We need to run post-provisioning scripts in our CI/CD pipeline which takes the output of Terraform. It would be great if Terraform could post the output JSON to an https endpoint.

E.g. for output of generated:

  • Acme keys
  • IP addresses
  • etc

Attempted Solutions

None, we use the cloud solution at terraform.io. No post options there.

Proposal

Add a post_url to the output command, where the JSON output is sent to:

output "certificate_private_key" {
   ...
   post_url:   "https://<url>"
   ...
}

All output should be combined in one JSON and sent in one go.

ghost avatar Nov 16 '19 01:11 ghost

should be covered by #22

kayrus avatar Dec 19 '19 09:12 kayrus