Skip to content

noinarisak/okta-terraform-demo

Repository files navigation

Okta ❤️ Terraform

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.

Table of Contents

Pre Req

  • Okta Tenant - Free Development tenant here.
  • Terraform (v1.1.x+) - Install docs here and introduction here.

Quick Start

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.

Tools

Validate install:

# Show version
$ terraform version

ie.
Terraform v1.1.0
...

# List help details
$ terraform help

Setup Steps for Each Demo

Setup a developer Okta Org and create a API Token.

  1. Setup developer Okta Org at developer.okta.com.
  2. Activate your Okta Org and then go to the Dashboard.
  3. On the Dashboard screen, navigate API menu and select Tokens.
  4. On the API screen, click Create Token and name your API Token.
  5. Copy and store the generated token so you can use this backend.config file later.
  6. Make note of your Okta Org url. (ie. dev-302083.okta.com) you need this later too.

Example Demos

  • 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.

Issues/Bugs or Features

Please submit Issues/Bugs/Features using GitHub Issues page and clicking on New issue button.

More information