terraform-provider-bouncr

command module
v0.0.0-...-34a15ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2019 License: EPL-2.0 Imports: 8 Imported by: 0

README

terraform-provider-bouncr

Terraform Provider for bouncr.

resource "bouncr_application" "foo" {
  name = "foo"
  url  = "foo"

  realm {
    name    = "foo_realm"
    pass_to = "http://foo.internal:3000"
  }
}

resource "bouncr_role" "foo_admin" {
  name = "foo-admin"
  permissions = [
    "${bouncr_permission.foo_create}",
    "${bouncr_permission.foo_read}",
  ]
}

resource "bouncr_role" "foo_user" {
  name = "foo-user"
  permissions = [
    "${bouncr_permission.foo_read}",
  ]
}

resource "bouncr_permission" "foo_create" {
  name = "foo:create"
}

resource "bouncr_permission" "foo_read" {
  name = "foo:read"
}

resource "bouncr_group" "foo_admins" {
  name        = "foo_admins"
  description = "The administrators for Foo"

  members = [
    ${data.bouncr_user.admin}
  ]
}

data "bouncr_user" "admin" {
  account = "admin"
}

resource "bouncr_assignments" "assign" {
  assignment {
    group = "${bouncr_group.foo_admins.id}"
    role  = "${bouncr_role.foo_admin.id}"
    realm = "${bouncr_application.realm[0].id}"
  }
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL