You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Create a pull request into the main branch. This will trigger a workflow to:
13
+
1. Validate syntax of Terraform code (will catch the missing double-quote that happened before)
14
+
2. Check correct code formatting
15
+
3. Run the plan command and add a comment to the PR with the output plan changes
16
+
4. Run a static code analysis tool for scanning IaC files for misconfigurations that may lead to security or compliance problems (such as Checkov, tfsec or Snyk)
17
+
3. Reviewer reviews code changes from the PR (if all checks have passed) and also review plan changes from the PR as well
18
+
4. If the plan is okay, merge PR into main. This will trigger a workflow to run terraform apply to apply the plan
19
+
20
+
### Notes:
21
+
- We can trigger the apply workflow on creating a release instead of merging to main
22
+
- Branch protection rule on main branch is added to not allow merging into main without having all the checks passed
23
+
9
24
## Configuring the Remote Backend to use Azure Storage with Terraform
10
25
11
26
Use Microsoft Azure Storage to create a Remote Backend for Terraform to store the state file and lock the file to avoid mistakes or damage the existing infrastructure.
0 commit comments