Skip to content

Commit

Permalink
docs: remove duplicate example usage (#1673)
Browse files Browse the repository at this point in the history
  • Loading branch information
staceysalamon-aiven authored Mar 22, 2024
1 parent a40df2a commit 6bef38b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
13 changes: 12 additions & 1 deletion docs/resources/organization_group_project.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,26 @@ Adds and manages a [group](https://aiven.io/docs/platform/concepts/projects_acco
## Example Usage

```terraform
resource "aiven_project" "example_project" {
project = "Example project"
parent_id = aiven_organization.main.id
}
resource "aiven_organization_user_group" "example" {
description = "Example group of users."
organization_id = aiven_organization.main.id
name = "Example group"
}
resource "aiven_organization_user_group_member" "project_admin" {
group_id = aiven_organization_user_group.example.group_id
organization_id = aiven_organization.main.id
user_id = "u123a456b7890c"
}
resource "aiven_organization_group_project" "example" {
group_id = aiven_organization_user_group.example.group_id
project = aiven_project.example.project
project = aiven_project.example_project.project
role = "admin"
}
```
Expand Down

This file was deleted.

14 changes: 12 additions & 2 deletions examples/resources/aiven_organization_group_project/resource.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
resource "aiven_project" "example_project" {
project = "Example project"
parent_id = aiven_organization.main.id
}

resource "aiven_organization_user_group" "example" {
description = "Example group of users."
organization_id = aiven_organization.main.id
name = "Example group"
}

resource "aiven_organization_user_group_member" "project_admin" {
group_id = aiven_organization_user_group.example.group_id
organization_id = aiven_organization.main.id
user_id = "u123a456b7890c"
}

resource "aiven_organization_group_project" "example" {
group_id = aiven_organization_user_group.example.group_id
project = aiven_project.example.project
project = aiven_project.example_project.project
role = "admin"
}
}

0 comments on commit 6bef38b

Please sign in to comment.