Hi all,<p>I've been working on (what turned out to be a fairly large) proof of concept open source Terraform Cloud/Enterprise alternative, Terrarun.<p>Over the past weekend, I've been adding support for the official Hashicorp Cloud agent, which is now working.<p>The entire project is fairly hacky at the moment (lacking tests, a good UI etc.) - partially because has to constantly change as I learn more things whilst implementing their APIs.<p>This particular adventure has been particularly note-worthy, given there is _no_ documentation for the agent APIs and, given that I haven't signed up for a Hashicorp Cloud account, absolutely no knowledge about how the communication _should_ work, without trial-and-error and cryptic messages :D<p>Hopefully if anyone else is trying to do the same, they can use as "some sort" of a reference to see how the APIs should work (though, I'm not saying they're absolutely complete - the agent seems to be a little lax on missing attributes)<p>Needless to say, I could find absolutely no resources, so hopefully this will help someone at some point :D<p>https://github.com/MatthewJohn/terrarun/commit/5900c7bfed6c4f66cb71ac84f694eb5003187039<p>(and yes, apologies for the license littered across the code, I've been meaning to fix it - I've previously preferred to provide a "real" open source license when a project is at the point I think it's usable, stable/trustworthy and something people might want to run/fork)<p>Many thanks :)