Skip to content

Instantly share code, notes, and snippets.

@alexkappa
Created December 11, 2019 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexkappa/5dc5e1450c544a8f1ad51a4de94258ac to your computer and use it in GitHub Desktop.
Save alexkappa/5dc5e1450c544a8f1ad51a4de94258ac to your computer and use it in GitHub Desktop.
terraform-provider-auth0 issue #119
resource "auth0_user" "user" {
connection_name = "Username-Password-Authentication"
username = "rsatesting"
nickname = "rsatesting"
email = "rob+testing@gmail.com"
email_verified = true
password = "IAmAp455w0rd"
app_metadata = "{\"groups\": [\"project:platform-admin\", \"foo:bar\"]}"
}
$ terraform apply -auto-approve [17:40:56]
auth0_user.user: Creating...
auth0_user.user: Creation complete after 0s [id=auth0|5df11c1b0fdcfe0ebd1dc0bf]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
$ terraform state show auth0_user.user [17:40:59]
# auth0_user.user:
resource "auth0_user" "user" {
app_metadata = jsonencode(
{
groups = [
"project:platform-admin",
"foo:bar",
]
}
)
connection_name = "Username-Password-Authentication"
email = "rob+testing@gmail.com"
email_verified = true
id = "auth0|5df11c1b0fdcfe0ebd1dc0bf"
nickname = "rsatesting"
password = (sensitive value)
username = "rsatesting"
}
resource "auth0_user" "user" {
connection_name = "Username-Password-Authentication"
username = "rsatesting"
nickname = "rsatesting"
email = "rob+testing@gmail.com"
email_verified = true
password = "IAmAp455w0rd"
app_metadata = "{\"groups\": [\"project:platform-admin\"]}"
}
$ terraform state show auth0_user.user [17:41:58]
# auth0_user.user:
resource "auth0_user" "user" {
app_metadata = jsonencode(
{
groups = [
"project:platform-admin",
]
}
)
connection_name = "Username-Password-Authentication"
email = "rob+testing@gmail.com"
email_verified = true
id = "auth0|5df11c1b0fdcfe0ebd1dc0bf"
nickname = "rsatesting"
password = (sensitive value)
phone_verified = false
user_id = "auth0|5df11c1b0fdcfe0ebd1dc0bf"
username = "rsatesting"
verify_email = false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment