Skip to content

QubitPi/Henschel

Repository files navigation

Henschel

GitHub Workflow Status Apache License Badge

Henschel is a Go webservice that exposes HashiCorp Packer and HashiCorp Terraform as Services, i.e. HashiCorp as a Service (HaaS) and makes it possible to deploy any infrastructures in the matter of a single HTTP request.

At its very early stage of development, Henschel supports generating AWS AMI Packer config files of

  • Kong API gateway

Development

Run Tests

make test

Spin Up the Service

make run

Example request:

curl -v -X POST localhost:8080/deployKongApiGateway \
    -H "Content-Type: application/json" \
    -d '{"sslCertBase64":"YXNkZnNnaHRkeWhyZXJ3ZGZydGV3ZHNmZ3RoeTY0cmV3ZGZyZWd0cmV3d2ZyZw==", "sslCertKeyBase64":"MzI0NXRnZjk4dmJoIGNsO2VbNDM1MHRdzszNDM1b2l0cmo=", "kongApiGatewayDomain":"api.mycompany.com"}'

At this moment, a "kong.pkr.hcl" config file for Packing an Kong AWS AMI will be generated at the project root.

License

The use and distribution terms for Henschel are covered by the Apache License, Version 2.0.