Skip to content

How to Review and Test Pull Requests with Terraform Changes

fzhao99 edited this page May 21, 2024 · 1 revision

How to review Pull Requests that include terraform changes.

  • Select Details to the right of Terraform Checks / check-terraform-formatting (pull_request)
Screenshot 2024-05-02 at 6 43 04 AM
  • Select terraform-plan on the left, then select Terraform Plan Prod to look at the resources that will be modified for the PR
Screenshot 2024-05-09 at 11 12 18 AM
  • This is the key for Terraform actions, these symbols beside resources will explain the actions that will be applied once the terraform apply command is ran
Screenshot 2024-05-09 at 11 14 43 AM
  • While reviewing the terraform plan, ensure the resources modified match the resources the PR owner identified in the PR Testing section

    • For example in the Testing Section of the PR, module.app_gateway.azurerm_application_gateway.load_balancer should be updated in place

Screenshot 2024-05-09 at 12 04 11 PM

  • Search for the module in the logs and you will see this matches the PR testing section so this resources change has been verified

Screenshot 2024-05-09 at 12 07 05 PM

  • If there is a resource modification that was not identified in the PR Testing section, annotate this in your PR comments so the owner can double check that this is not an unintentional change that was introduce with the code

How to test access to the app service:

  1. go to the app service in Azure
  2. click networking
  3. Visit IP labeled Inbound Address, it should result in a 404.

Additionally, on the same networking page:

  1. click the link for the Public network access which will take you to the Access Restrictions
  2. Check that we only allow access from that environments load balancer.

How to smoke test the function app is:

dev3 was used for this smoke test

Local development

Setup

How to

Development process and standards

Oncall

Technical resources

How-to guides

Environments/Azure

Misc

?

Clone this wiki locally