Locals
- locals are reusable values which will not be passed but used many times with in template
- Refer Here for changes.
Outputs
- When terraform executes, what we display becomes outputs
- output block
- Refer Here for changes
linting and security scanning in terraform
Scenario: Multi Region Ntier architecture (Azure)
-
My organization is deploying application in two regions in Active passive mode Azure
-
Manual creation steps
- create resource group
- create a virtual network in region 1
- add subnets
- create a database
- create app vms and deploy application into it
- create web vms and deploy application into it
- configure load balancer
- repeat the above steps for region 2
- configure Active passive
Implementation
- We have inclued tfsec and tflint into our development workflow
- Create a resource group
- create a primary virtual network with subnets Refer Here
