terraform-provider-http
terraform-provider-http copied to clipboard
Enhancement: post output as JSON to URL
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.
should be covered by #22