Creating reusable modules
- Terraform module is a reusable template
- At the module level
- Variables we define in the module will become arguments
- outputs we define in the module will be come attributes of the module
- Modules will not have a provider block who ever is calling module needs to have a provider block
lets create a module which creates a security group
- Refer Here for creating a security group moudule and using it from local folder
- Created a resuable module in git Refer Here
- Refer Here for the changes done to use a reusable module from git repo.
Create a kubernetes cluster from terraform in AKS
- Possible options
- Using AzureRm Providers
- Searching for existing module to create AKS Cluster
- Steps for using AzureRm Provider
- Figure out manual steps and implement in Terraform
- Steps for using Existing module
- Figure out manual steps for understanding
- Read module documentation for passing different values
We will be creating AKS Cluster using Azure RM PRovider
- Can you figure out manual steps to create AKS Cluster
- Refer Here for the chagnes done
