Terraform setup with Auth0
==========================

In order to run terraform for auth, you need to set a few environment variables for auth0.

Example:
--------

> export AUTH0_DOMAIN=netfoundry-<env>.auth0.com
> export AUTH0_CLIENT_ID=xxxx
> export AUTH0_CLIENT_SECRET=yyyy

I have created a little shell script that will query SSM and export them into your environment.  You have to source and give it the enviroment you want.

> source auth-env.sh <env>

You can get the credentials by hand from the aws cli.  

To get the client id:
> aws ssm get-parameters --names "/<env>/auth0/nf-terraform/client-id"

To get the client_secret:
> aws ssm get-parameters --names "/<env>/auth0/nf-terraform/client-secret" --with-decryption

To get the domain:
> aws ssm get-parameters --names "/<env>/auth0/nf-terraform/domain"
