AlexOBarnes / StarWatch

3 stars 0 forks source link

Write tests for the terraform main build script #88

Open MurasatoNaoya opened 1 week ago

MurasatoNaoya commented 1 week ago

As a data architect, it's necessary to ensure cloud infrastructure built by the main.tf is robust and creates instances of all desired service in an expected manner. The 'terraform plan' command in the terminal does not itself test what's being built, but only previews it - there is no guarantee that each service is integrated correctly and are connected to valid policies. terraform plan also requires manual input by default, which is something we want to avoid in automated CI/CD deployment.

Instead, we plan to write tests for the main.tf build file specifically, to ensure our cloud infrastructure is robust and builds as intended.

AlexOBarnes commented 2 days ago

This is beyond the scope of the project for now, but should be consider in future projects to make terraform scripts a lot more robust