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!
Show HN: Precloud – Dynamic tests for infrastructure-as-code
github.com
1–10 of 18 posts
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!
Show HN: Precloud – Dynamic tests for infrastructure-as-code
github.com
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].
We're a CI/CD that'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.
Esp. if you want a single team creating reusable templates and guardrails for the whole company, Spacelift can help you a lot, but it's very useful for any bigger group of people using IaC together.
Disclaimer: Software Engineer at Spacelift, grains of salt shall be taken with the above
[0]: https://spacelift.io
This looks really cool! I wonder if it only checks for collisions in the current statefile/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. That said, if you like infra-as-code and are scaling your usage to more people, I recommend taking a look at tools like S…
This looks really cool! I wonder if it only checks for collisions in the current statefile/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. That said, if you like infra-as-code and are scaling your usage to more people, I recommend taking a look at tools like S…
Hey Cube! It does indeed run checks against the cloud as well for things like naming collisions and quota allocation
Earlier quoted context omitted.
Hey Cube! It does indeed run checks against the cloud as well for things like naming collisions and quota allocation
Could you expand on how you're doing that, technically? I'm really curious and can't find it in the code, skimming it quickly.
The default plugins present are the 6 mentioned here https://github.com/tinystacks/precloud/blob/main/PLUGINS.md. They’re all published on npm and github
Suggestion: Please add a license and fill out the About section in the GitHub repo.
It looks like an useful tool, thank you! It looks like it's written in JS and has several dependencies so for security reasons I'd run it on a separate box to minimize blast radius.
Earlier quoted context omitted.
Could you expand on how you're doing that, technically? I'm really curious and can't find it in the code, skimming it quickly.
Yeah, so this package itself is the core framework that establishes how these tests are to be run. There is a notion of plug-ins, which are parsers and checks. Parsers take cdk or terraform code and break their synthesized/planned output out into a common structure. Then checks run over that structure and pull data in from elsewhere and run actual validations. You can read more in the developing plugins doc on the re…