TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Precloud – Dynamic tests for infrastructure-as-code

48 pointsby safeermover 2 years ago
Infrastructure as code (IaC) often fails during deployment due to dynamic constraints such as name collisions, quota limits and other resource-specific constraints that devs run halfway into an IaC deployment. We witnessed this first hand at TinyStacks and built precloud - an open-source framework to define and run dynamic tests before IaC deployments.<p>The precloud framework currently supports Terraform and AWS CDK with several default checks (unique names, service quota checks and more) and ability to define your own!

8 comments

cholograndeover 2 years ago
Any time I see a nodejs tool aimed at systems tasks (general infrastructure, IaC, etc) I immediately disregard it. While, to be honest, I&#x27;m not sure that&#x27;s a fair way to look at tools like this, it&#x27;s the reality.<p>I always wonder at the authors motivation to use node when the majority of the ecosystem is written in golang. This is actually one of the main reasons I dont use terraform CDK right now. Why is CDK node first (I know there is golang support) when terraform is all golang?
评论 #34539159 未加载
cube2222over 2 years ago
This looks really cool! I wonder if it only checks for collisions in the current statefile&#x2F;template, or whether it actually makes call to the cloud provider and checks for even external collisions there? Though I guess that would be very complicated to accomplish without writing tons of glue code.<p>That said, if you like infra-as-code and are scaling your usage to more people, I recommend taking a look at tools like Spacelift[0].<p>We&#x27;re a CI&#x2F;CD that&#x27;s specialized for infra-as-code and integrate very deeply with Terraform, CloudFormation, and similar tools workflows. This way we can give you better visibility, security and easy customizability through automations that are tailor-made for infra-as-code use cases. You can ofc additionally also hook in tools like this one.<p>Esp. if you want a single team creating reusable templates and guardrails for the whole company, Spacelift can help you a lot, but it&#x27;s very useful for any bigger group of people using IaC together.<p>Disclaimer: Software Engineer at Spacelift, grains of salt shall be taken with the above<p>[0]: <a href="https:&#x2F;&#x2F;spacelift.io" rel="nofollow">https:&#x2F;&#x2F;spacelift.io</a>
评论 #34533827 未加载
varunsharma07over 2 years ago
Suggestion: Please add a license and fill out the About section in the GitHub repo.
评论 #34534222 未加载
hdjjhhvvhgaover 2 years ago
It looks like an useful tool, thank you! It looks like it&#x27;s written in JS and has several dependencies so for security reasons I&#x27;d run it on a separate box to minimize blast radius.
评论 #34534245 未加载
myroon5over 2 years ago
Some similar IaC dynamic analysis tools written in golang:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;terraform-linters&#x2F;tflint-ruleset-aws&#x2F;blob&#x2F;master&#x2F;docs&#x2F;deep_checking.md">https:&#x2F;&#x2F;github.com&#x2F;terraform-linters&#x2F;tflint-ruleset-aws&#x2F;blob...</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;aws-cloudformation&#x2F;rain&#x2F;pull&#x2F;93">https:&#x2F;&#x2F;github.com&#x2F;aws-cloudformation&#x2F;rain&#x2F;pull&#x2F;93</a>
sausagefeetover 2 years ago
This is really cool. I am co-founder of Terrateam[0] and we see failed runs for these reasons a lot more than we expected and it&#x27;s dangerous. It wastes time and a failure during an apply leaves your infrastructure in an inconsistent state. I&#x27;m excited to play with this.<p>[0] <a href="https:&#x2F;&#x2F;terrateam.io" rel="nofollow">https:&#x2F;&#x2F;terrateam.io</a>
partdavidover 2 years ago
I see that GCP support is &quot;coming soon&quot;--even just a quota comparison would be really nice, as these are numerous and a big pain there. Any ETA on when there might be something for GCP?
评论 #34536444 未加载
moltarover 2 years ago
Can it check for the cross stack reference issues (export removed from a provider stack, but still used in the consumer stack).
评论 #34587481 未加载