Hacker News new | ask | show | jobs
by zsimjee 1238 days ago
Hey Cube! It does indeed run checks against the cloud as well for things like naming collisions and quota allocation
1 comments

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 repo https://github.com/tinystacks/precloud/blob/main/DEVELOPING_....

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

Oh, that's cool, thanks for the explanation!