Simple demos showcasing Okta and Terraform implementation. The intended audience for this repo are for practitioners who are new to Terraform
but familiar with Okta. Please review this introduction on Terraform and of course more info on Okta.
- Okta Tenant - Free Development tenant here.
- Terraform (v1.1.x+) - Install docs here and introduction here.
NOTE: This walk-through was developed on version Terraform v1.1.x, any other version of Terraform and your mileage will vary but should base on HashiCorp 😉. There is a wonderful tool, tfenv, to manage multiple version on you mac if happen to manage different versions of Terraform.
Validate install:
# Show version
$ terraform version
ie.
Terraform v1.1.0
...
# List help details
$ terraform help
Setup a developer Okta Org and create a API Token.
- Setup developer Okta Org at developer.okta.com.
- Activate your Okta Org and then go to the Dashboard.
- On the Dashboard screen, navigate
API
menu and selectTokens
. - On the API screen, click
Create Token
and name your API Token. - Copy and store the generated token so you can use this
backend.config
file later. - Make note of your Okta Org url. (ie.
dev-302083.okta.com
) you need this later too.
- Simple Demo - Very simple provisioning of Okta Org.
- Output File Demo - Show case generating environment variable (*.env) for your application that is tied to your Okta Org.
- Multi Environment Demo - Show case how to use
terraform workspace
to management multiple Okta Orgs. (i.e. Development, Staging, Pre-Production and Production). For this demo please repeat Setup Steps for Each Demo to represent the different environments.
Please submit Issues/Bugs/Features using GitHub Issues page and clicking on New issue
button.
-
Okta
-
Terraform
-
Other tools
-
Additional Articles and Blogs