1.2 KiB
1.2 KiB
Validation
Local Validation
On some Windows desktops, direct .ps1 execution may be blocked by execution policy. Use:
powershell -ExecutionPolicy Bypass -File .\scripts\bootstrap.ps1
powershell -ExecutionPolicy Bypass -File .\scripts\validate-terraform.ps1
Terraform Validation
The validation script runs:
terraform fmt -recursive -check
terraform init -backend=false
terraform validate
After filling terraform.tfvars, run:
cd terraform/envs/demo
terraform init
terraform plan -out tfplan
terraform apply tfplan
Scenario Validation
For each scenario:
- Run
sql/99_reset.sql. - Run
00_schema.sql,01_seed_data.sql,02_identities.sql, and03_data_grants.sql. - Connect as each persona or propagate the context through the application.
- Run
04_test_queries.sqlor the scenario-specific activity script. - Compare the result with
evidence/expected-results.md.
Static Validation Limits
terraform validate checks syntax and provider schema. It does not guarantee regional database version availability, shape availability, quota, IAM policies, or service limits. Those are validated during terraform plan and terraform apply.