-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add teams deprecation info to relevant resources (#1601)
- Loading branch information
1 parent
1bb4a14
commit 4bea2c9
Showing
12 changed files
with
148 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,33 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "aiven_account_team_member Resource - terraform-provider-aiven" | ||
subcategory: "" | ||
description: |- | ||
The Account Team Member resource allows the creation and management of an Aiven Account Team Member. | ||
During the creation of aiven_account_team_memberresource, an email invitation will be sent | ||
to a user using user_email address. If the user accepts an invitation, he or she will become | ||
a member of the account team. The deletion of aiven_account_team_member will not only | ||
delete the invitation if one was sent but not yet accepted by the user, it will also | ||
eliminate an account team member if one has accepted an invitation previously. | ||
Adds a user as a team member. | ||
During the creation of this resource, an invite is sent to the address specified in user_email. | ||
The user is added to the team after they accept the invite. Deleting aiven_account_team_member | ||
deletes the pending invite if not accepted or removes the user from the team if they already accepted the invite. | ||
--- | ||
|
||
# aiven_account_team_member (Resource) | ||
Adds a user as a team member. | ||
|
||
The Account Team Member resource allows the creation and management of an Aiven Account Team Member. | ||
During the creation of this resource, an invite is sent to the address specified in `user_email`. | ||
The user is added to the team after they accept the invite. Deleting `aiven_account_team_member` | ||
deletes the pending invite if not accepted or removes the user from the team if they already accepted the invite. | ||
|
||
During the creation of `aiven_account_team_member`resource, an email invitation will be sent | ||
to a user using `user_email` address. If the user accepts an invitation, he or she will become | ||
a member of the account team. The deletion of `aiven_account_team_member` will not only | ||
delete the invitation if one was sent but not yet accepted by the user, it will also | ||
eliminate an account team member if one has accepted an invitation previously. | ||
~> **Teams are becoming groups** | ||
Groups are an easier way to control access to your organization's projects and | ||
services for a group of users. | ||
[Migrate your teams](https://aiven.io/docs/tools/terraform/howto/migrate-from-teams-to-groups) to groups. | ||
|
||
## Example Usage | ||
|
||
## Example Usage | ||
```terraform | ||
resource "aiven_account_team_member" "foo" { | ||
account_id = aiven_account.<ACCOUNT_RESOURCE>.account_id | ||
team_id = aiven_account_team.<TEAM_RESOURCE>.team_id | ||
resource "aiven_account_team_member" "main" { | ||
account_id = aiven_account.ACCOUNT_RESOURCE_NAME.account_id | ||
team_id = aiven_account_team.TEAM_RESOURCE_NAME.team_id | ||
user_email = "[email protected]" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
|
@@ -61,11 +58,8 @@ Optional: | |
- `delete` (String) | ||
- `read` (String) | ||
- `update` (String) | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import aiven_account_team_member.foo account_id/team_id/user_email | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resource "aiven_account_team" "account_team1" { | ||
account_id = aiven_account.<ACCOUNT_RESOURCE>.account_id | ||
name = "<ACCOUNT_TEAM_NAME>" | ||
resource "aiven_account_team" "example_team" { | ||
account_id = aiven_account.ACCOUNT_RESOURCE_NAME.account_id | ||
name = "Example team" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
resource "aiven_account_team_member" "foo" { | ||
account_id = aiven_account.<ACCOUNT_RESOURCE>.account_id | ||
team_id = aiven_account_team.<TEAM_RESOURCE>.team_id | ||
resource "aiven_account_team_member" "main" { | ||
account_id = aiven_account.ACCOUNT_RESOURCE_NAME.account_id | ||
team_id = aiven_account_team.TEAM_RESOURCE_NAME.team_id | ||
user_email = "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
resource "aiven_project" "<PROJECT>" { | ||
resource "aiven_project" "example_project" { | ||
project = "project-1" | ||
account_id = aiven_account_team.<ACCOUNT_RESOURCE>.account_id | ||
account_id = aiven_account_team.ACCOUNT_RESOURCE_NAME.account_id | ||
} | ||
|
||
resource "aiven_account_team_project" "account_team_project1" { | ||
account_id = aiven_account.<ACCOUNT_RESOURCE>.account_id | ||
team_id = aiven_account_team.<TEAM_RESOURCE>.team_id | ||
project_name = aiven_project.<PROJECT>.project | ||
resource "aiven_account_team" "example_team" { | ||
account_id = aiven_account.ACCOUNT_RESOURCE_NAME.account_id | ||
name = "Example team" | ||
} | ||
|
||
resource "aiven_account_team_project" "main" { | ||
account_id = aiven_account.ACCOUNT_RESOURCE_NAME.account_id | ||
team_id = aiven_account_team.example_team.team_id | ||
project_name = aiven_project.example_project.project | ||
team_type = "admin" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" | ||
subcategory: "" | ||
description: |- | ||
{{ .Description | plainmarkdown | trimspace | prefixlines " " }} | ||
--- | ||
# {{.Name}} ({{.Type}}) | ||
{{ .Description | trimspace }} | ||
|
||
~> **Teams are becoming groups** | ||
Groups are an easier way to control access to your organization's projects and | ||
services for a group of users. | ||
[Migrate your teams](https://aiven.io/docs/tools/terraform/howto/migrate-from-teams-to-groups) to groups. | ||
|
||
|
||
{{ if .HasExample -}} | ||
## Example Usage | ||
{{ tffile .ExampleFile }} | ||
{{- end }} | ||
{{ .SchemaMarkdown | trimspace }} | ||
{{ if .HasImport -}} | ||
## Import | ||
Import is supported using the following syntax: | ||
{{ codefile "shell" .ImportFile }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" | ||
subcategory: "" | ||
description: |- | ||
{{ .Description | plainmarkdown | trimspace | prefixlines " " }} | ||
--- | ||
# {{.Name}} ({{.Type}}) | ||
{{ .Description | trimspace }} | ||
|
||
~> **Teams are becoming groups** | ||
Groups are an easier way to control access to your organization's projects and | ||
services for a group of users. | ||
[Migrate your teams](https://aiven.io/docs/tools/terraform/howto/migrate-from-teams-to-groups) to groups. | ||
|
||
|
||
{{ if .HasExample -}} | ||
## Example Usage | ||
{{ tffile .ExampleFile }} | ||
{{- end }} | ||
{{ .SchemaMarkdown | trimspace }} | ||
{{ if .HasImport -}} | ||
## Import | ||
Import is supported using the following syntax: | ||
{{ codefile "shell" .ImportFile }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" | ||
subcategory: "" | ||
description: |- | ||
{{ .Description | plainmarkdown | trimspace | prefixlines " " }} | ||
--- | ||
# {{.Name}} ({{.Type}}) | ||
{{ .Description | trimspace }} | ||
|
||
~> **Teams are becoming groups** | ||
Groups are an easier way to control access to your organization's projects and | ||
services for a group of users. | ||
[Migrate your teams](https://aiven.io/docs/tools/terraform/howto/migrate-from-teams-to-groups) to groups. | ||
|
||
|
||
{{ if .HasExample -}} | ||
## Example Usage | ||
{{ tffile .ExampleFile }} | ||
{{- end }} | ||
{{ .SchemaMarkdown | trimspace }} | ||
{{ if .HasImport -}} | ||
## Import | ||
Import is supported using the following syntax: | ||
{{ codefile "shell" .ImportFile }} | ||
{{- end }} |