This repo is for managing an Okta instance using Terraform.
- Install Terraform on your computer
- Create a directory for your Okta configuration files
- Navigate to new directory
- Create an Okta Provider Terraform file
- Reference provider.tf file. You may notice I store my Okta Provider argument values as variables. If you wish to create variables, proceed to steps 5 & 6
- Create variables.tf
- Create variable.auto.tfvar (reference TEMPLATEvariable.txt)
- **Make sure to add this variable.auto.tfvar file to your .gitignore file if you plan on uploading your directory to Github.
- Create new Terraform file (ex: groups.tf)
- Refer to Terraform's documentation for Okta Group resource template
- Initialize Terraform
terraform init
- Review the execution plan to see what is being added, changed and/ or destroyed
terraform plan
- If all looks well, apply plan
terraform apply
- Voila! Refresh your Okta instance to see the change!