Skip to content

Commit 55049e9

Browse files
committed
update team notification docs example to add user to team
1 parent ed5979e commit 55049e9

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

website/docs/r/team_notification_configuration.html.markdown

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,14 @@ resource "tfe_team" "test" {
4949
organization = tfe_organization.test.id
5050
}
5151
52-
resource "tfe_organization_membership" "test" {
53-
organization = "my-org-name"
54-
52+
data "tfe_organization_membership" "test" {
53+
organization = tfe_organization.test.name
54+
55+
}
56+
57+
resource "tfe_team_organization_member" "test" {
58+
team_id = tfe_team.test.id
59+
organization_membership_id = data.tfe_organization_membership.test.id
5560
}
5661
5762
resource "tfe_team_notification_configuration" "test" {
@@ -77,9 +82,14 @@ resource "tfe_team" "test" {
7782
organization = tfe_organization.test.id
7883
}
7984
80-
resource "tfe_organization_membership" "test" {
81-
organization = "my-org-name"
82-
85+
data "tfe_organization_membership" "test" {
86+
organization = tfe_organization.test.name
87+
88+
}
89+
90+
resource "tfe_team_organization_member" "test" {
91+
team_id = tfe_team.test.id
92+
organization_membership_id = data.tfe_organization_membership.test.id
8393
}
8494
8595
resource "tfe_team_notification_configuration" "test" {

0 commit comments

Comments
 (0)