Coder Social home page Coder Social logo

miki2826 / terraform-provider-auth0 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexkappa/terraform-provider-auth0

0.0 1.0 0.0 11.26 MB

Auth0 Terraform Provider

Home Page: https://www.terraform.io/docs/providers/auth0/

License: Mozilla Public License 2.0

Go 91.95% HCL 4.20% Makefile 1.11% Shell 1.87% HTML 0.87%

terraform-provider-auth0's Introduction

Auth0 Terraform Provider

Build Status Maintainability Test Coverage

Requirements

  • Terraform 0.11.x || 0.12.x
  • Go 1.10 (to build the provider plugin)

Building The Provider

Clone repository to: $GOPATH/src/github.com/alexkappa/terraform-provider-auth0

$ mkdir -p $GOPATH/src/github.com/alexkappa; cd $GOPATH/src/github.com/alexkappa
$ git clone [email protected]:alexkappa/terraform-provider-auth0

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/alexkappa/terraform-provider-auth0
$ make build

Using the provider

The provider isn't listed in the official Terraform repository, so using terraform init to download the provider won't work. To install the auth0 provider, you can download the binary and place in the directory ~/.terraform.d/plugins (or %APPDATA%/terraform.d/plugins/ if you're on Windows).

To use the provider define the auth0 provider in your *.tf file.

provider "auth0" {
  "domain" = "<domain>"
  "client_id" = "<client-id>"
  "client_secret" = "<client-secret>"
}

These variables can also be accessed via the AUTH0_DOMAIN, AUTH0_CLIENT_ID and AUTH0_CLIENT_SECRET environment variables respectively.

Examples of resources can be found in the examples directory.

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.10+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

On how to develop custom terraform providers, read the official guide.

To compile the provider, run make build. This will build the provider and install the provider binary in the $GOPATH/bin directory.

$ make build
...
$ $GOPATH/bin/terraform-provider-auth0
...

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests, the following environment variables must be set:

AUTH0_DOMAIN=your-tenant.auth0.com
AUTH0_CLIENT_ID=xyz
AUTH0_CLIENT_SECRET=xyz

Then, run make testacc.

Note: The acceptance tests make calls to a real Auth0 tenant, and create real resources. Certain tests, for example for custom domains (TestAccCustomDomain), also require a paid Auth0 subscription to be able to run successfully.

At the time of writing, the following configuration steps are also required for the test tenant:

  • The Username-Password-Authentication connection must have Requires Username option enabled for the user tests to successfully run.

Supporting the provider

This project is maintained by myself (@alexkappa) with contributions from great people across the community.

I am not affiliated with Auth0 and all work that goes into this provider is done during my spare time. Please be patient with issues and pull requests.

If you or your company relies on this plugin or the Go SDK and would like to ensure its continuing support please consider donating.

terraform-provider-auth0's People

Contributors

abn avatar abulford avatar agoldenduck avatar alexkappa avatar antham avatar apricote avatar ar3cka avatar cgriggs01 avatar dancrumb avatar danielepolencic avatar dmcgee-ripple avatar domg123 avatar edify42 avatar fabriziomoscon avatar forbeslindesay avatar hypnoglow avatar larrymagic13 avatar mat1g3r avatar mbfrahry avatar mdisibio avatar meza avatar miki2826 avatar mmindenhall avatar omar avatar phil-hachey avatar richardknop avatar rkhoriander avatar sinnedh avatar smaant avatar yinzara avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.