top | item 34533827

(no title)

zsimjee | 3 years ago

Hey Cube! It does indeed run checks against the cloud as well for things like naming collisions and quota allocation

discuss

order

cube2222|3 years ago

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.

zsimjee|3 years ago

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