Skip to content
Kitbay

tf-best-practices

Apache-2.0Updated on Nov 11, 20263,464GitHub starsIncludes scripts

A supporting skill in AWS's aws-startup-advisor plugin for the Terraform that its migration skills generate.

What the skill teaches

A supporting skill in AWS's aws-startup-advisor plugin for the Terraform that its migration skills generate. Before a terraform directory is written it supplies authoring rules and a security baseline; afterwards it runs a deterministic policy check and reports a pass or fail verdict, with exit codes and JSON output the calling skill acts on. It is read-only: it never edits .tf files or decides when a migration phase is complete, and it adds to rather than replaces terraform fmt, init and validate. It ships Python validation scripts with fixtures that double as its regression tests.

Capabilities

  • Apply authoring rules to generated AWS Terraform
  • Check generated Terraform against a security policy
  • Report a pass or fail verdict as JSON