azurenoops / ref-scca-enclave-landing-zone-starter

A reference implementation of an SCCA-compliant Mission Enclave landing zone that supports running Azure PaaS services using Azure NoOps.
2 stars 7 forks source link

TEST CASE - Deploy LZ Starter to MAG, Multi-Subscription, using Terraform CLI, Local State Storage #41

Closed timothymeyers closed 2 months ago

timothymeyers commented 11 months ago

This issue is a test case for landing zone starter deployment.

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [X] test case
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Test steps

  1. (Optionally) Create a branch (or Fork) for testing
  2. Clone repository to your local computer (or into a Codespace)
  3. cd <cloned-dir>/infrastructure/terraform
  4. cp ../../tfvars/parameters.tfvars .
  5. Edit parameters.tfvars for Azure Government use (e.g. locations)
  6. terraform version (should be version >= 1.4.6)
  7. Authenticate Terraform with Azure. Note that authenticating with Azure Government requires the use of the ARM_ENVIRONMENT environment variable and az cloud set
  8. terraform init
  9. terraform plan -out test.plan
  10. terraform apply -f test.plan

Expected Results:

  1. Local Terraform State - terraform.tfstate
  2. Landing Zone RGs in separate subscriptions - assumes location is usgovirginia (usgva) a. anoa-usgva-alerting-dev-rg b. anoa-usgva-devsecops-dev-rg c. anoa-usgva-hub-core-dev-rg d. anoa-usgva-id-dev-rg e. anoa-usgva-ops-dev-rg f. anoa-usgva-ops-mgt-logging-dev-rg
  3. Check for AZ firewall at premium level in anoa-usgva-hub-core-dev-rg
  4. Check if there is a Log Analytics workspace in anoa-usgva-ops-mgt-logging-dev-rg
  5. Check if there is a Activity log alert rule in the anoa-usgva-alerting-dev-rg
  6. Check if there is a vnet, subnet and nsg in all the resource groups
  7. Check if Force Tunneling is in each management spoke resource groups

Other helpful details