Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Nov 26, 2024
1 parent 70e08d7 commit 7fa8032
Showing 1 changed file with 25 additions and 15 deletions.
40 changes: 25 additions & 15 deletions example/user/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,36 @@ provider "plural" {
use_cli = true
}

data "plural_config" "config" {}
# data "plural_config" "config" {}
#
# data "plural_user" "user" {
# email = "[email protected]"
# }

data "plural_user" "user" {
email = "[email protected]"
resource "plural_user" "spiderman" {
name = "Peter Parker"
email = "[email protected]"
}

resource "plural_user" "user" {
name = "Marcin Maciaszczyk"
email = "[email protected]"
# data "plural_group" "avengers" {
# name = "avengers"
# }

resource "plural_group" "avengers" {
name = "avengers"
description = "avengers group"
}

resource "plural_group_member" "spiderman" {
user_id = plural_user.spiderman.id
group_id = plural_group.avengers.id
}

resource "plural_group_member" "duplicate" {
user_id = plural_user.spiderman.id
group_id = plural_group.avengers.id
}

# data "plural_group" "group" {
# name = "team"
# }
#
# resource "plural_group" "test" {
# name = "test"
# description = "test group"
# }
#
# resource "plural_rbac" "rbac" {
# service_id = "624bff88-05e3-45f6-bc3b-44708594e28e"
# bindings = {
Expand Down

0 comments on commit 7fa8032

Please sign in to comment.