1. Packages
  2. Aiven Provider
  3. API Docs
  4. AccountTeamProject
Aiven v6.37.0 published on Thursday, Apr 10, 2025 by Pulumi

aiven.AccountTeamProject

Explore with Pulumi AI

Links an existing project to an existing team. Both the project and team should have the same account_id.

!> Teams have been deprecated and are being migrated to groups On 30 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won’t be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed. View the migration guide for more information on the changes and migrating to groups.

Important You can’t delete the Account Owners team. Deleting all other teams in your organization will disable the teams feature. You won’t be able to create new teams or access your Account Owners team.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const exampleProject = new aiven.Project("example_project", {
    project: "project-1",
    accountId: ACCOUNT_RESOURCE_NAME.accountId,
});
const exampleTeam = new aiven.AccountTeam("example_team", {
    accountId: ACCOUNT_RESOURCE_NAMEAivenAccount.accountId,
    name: "Example team",
});
const main = new aiven.AccountTeamProject("main", {
    accountId: ACCOUNT_RESOURCE_NAMEAivenAccount.accountId,
    teamId: exampleTeam.teamId,
    projectName: exampleProject.project,
    teamType: "admin",
});
Copy
import pulumi
import pulumi_aiven as aiven

example_project = aiven.Project("example_project",
    project="project-1",
    account_id=accoun_t__resourc_e__name["accountId"])
example_team = aiven.AccountTeam("example_team",
    account_id=accoun_t__resourc_e__name_aiven_account["accountId"],
    name="Example team")
main = aiven.AccountTeamProject("main",
    account_id=accoun_t__resourc_e__name_aiven_account["accountId"],
    team_id=example_team.team_id,
    project_name=example_project.project,
    team_type="admin")
Copy
package main

import (
	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleProject, err := aiven.NewProject(ctx, "example_project", &aiven.ProjectArgs{
			Project:   pulumi.String("project-1"),
			AccountId: pulumi.Any(ACCOUNT_RESOURCE_NAME.AccountId),
		})
		if err != nil {
			return err
		}
		exampleTeam, err := aiven.NewAccountTeam(ctx, "example_team", &aiven.AccountTeamArgs{
			AccountId: pulumi.Any(ACCOUNT_RESOURCE_NAMEAivenAccount.AccountId),
			Name:      pulumi.String("Example team"),
		})
		if err != nil {
			return err
		}
		_, err = aiven.NewAccountTeamProject(ctx, "main", &aiven.AccountTeamProjectArgs{
			AccountId:   pulumi.Any(ACCOUNT_RESOURCE_NAMEAivenAccount.AccountId),
			TeamId:      exampleTeam.TeamId,
			ProjectName: exampleProject.Project,
			TeamType:    pulumi.String("admin"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;

return await Deployment.RunAsync(() => 
{
    var exampleProject = new Aiven.Project("example_project", new()
    {
        ProjectName = "project-1",
        AccountId = ACCOUNT_RESOURCE_NAME.AccountId,
    });

    var exampleTeam = new Aiven.AccountTeam("example_team", new()
    {
        AccountId = ACCOUNT_RESOURCE_NAMEAivenAccount.AccountId,
        Name = "Example team",
    });

    var main = new Aiven.AccountTeamProject("main", new()
    {
        AccountId = ACCOUNT_RESOURCE_NAMEAivenAccount.AccountId,
        TeamId = exampleTeam.TeamId,
        ProjectName = exampleProject.ProjectName,
        TeamType = "admin",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.Project;
import com.pulumi.aiven.ProjectArgs;
import com.pulumi.aiven.AccountTeam;
import com.pulumi.aiven.AccountTeamArgs;
import com.pulumi.aiven.AccountTeamProject;
import com.pulumi.aiven.AccountTeamProjectArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleProject = new Project("exampleProject", ProjectArgs.builder()
            .project("project-1")
            .accountId(ACCOUNT_RESOURCE_NAME.accountId())
            .build());

        var exampleTeam = new AccountTeam("exampleTeam", AccountTeamArgs.builder()
            .accountId(ACCOUNT_RESOURCE_NAMEAivenAccount.accountId())
            .name("Example team")
            .build());

        var main = new AccountTeamProject("main", AccountTeamProjectArgs.builder()
            .accountId(ACCOUNT_RESOURCE_NAMEAivenAccount.accountId())
            .teamId(exampleTeam.teamId())
            .projectName(exampleProject.project())
            .teamType("admin")
            .build());

    }
}
Copy
resources:
  exampleProject:
    type: aiven:Project
    name: example_project
    properties:
      project: project-1
      accountId: ${ACCOUNT_RESOURCE_NAME.accountId}
  exampleTeam:
    type: aiven:AccountTeam
    name: example_team
    properties:
      accountId: ${ACCOUNT_RESOURCE_NAMEAivenAccount.accountId}
      name: Example team
  main:
    type: aiven:AccountTeamProject
    properties:
      accountId: ${ACCOUNT_RESOURCE_NAMEAivenAccount.accountId}
      teamId: ${exampleTeam.teamId}
      projectName: ${exampleProject.project}
      teamType: admin
Copy

Create AccountTeamProject Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AccountTeamProject(name: string, args: AccountTeamProjectArgs, opts?: CustomResourceOptions);
@overload
def AccountTeamProject(resource_name: str,
                       args: AccountTeamProjectArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def AccountTeamProject(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       account_id: Optional[str] = None,
                       team_id: Optional[str] = None,
                       project_name: Optional[str] = None,
                       team_type: Optional[str] = None)
func NewAccountTeamProject(ctx *Context, name string, args AccountTeamProjectArgs, opts ...ResourceOption) (*AccountTeamProject, error)
public AccountTeamProject(string name, AccountTeamProjectArgs args, CustomResourceOptions? opts = null)
public AccountTeamProject(String name, AccountTeamProjectArgs args)
public AccountTeamProject(String name, AccountTeamProjectArgs args, CustomResourceOptions options)
type: aiven:AccountTeamProject
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AccountTeamProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AccountTeamProjectArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AccountTeamProjectArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AccountTeamProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AccountTeamProjectArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var accountTeamProjectResource = new Aiven.AccountTeamProject("accountTeamProjectResource", new()
{
    AccountId = "string",
    TeamId = "string",
    ProjectName = "string",
    TeamType = "string",
});
Copy
example, err := aiven.NewAccountTeamProject(ctx, "accountTeamProjectResource", &aiven.AccountTeamProjectArgs{
	AccountId:   pulumi.String("string"),
	TeamId:      pulumi.String("string"),
	ProjectName: pulumi.String("string"),
	TeamType:    pulumi.String("string"),
})
Copy
var accountTeamProjectResource = new AccountTeamProject("accountTeamProjectResource", AccountTeamProjectArgs.builder()
    .accountId("string")
    .teamId("string")
    .projectName("string")
    .teamType("string")
    .build());
Copy
account_team_project_resource = aiven.AccountTeamProject("accountTeamProjectResource",
    account_id="string",
    team_id="string",
    project_name="string",
    team_type="string")
Copy
const accountTeamProjectResource = new aiven.AccountTeamProject("accountTeamProjectResource", {
    accountId: "string",
    teamId: "string",
    projectName: "string",
    teamType: "string",
});
Copy
type: aiven:AccountTeamProject
properties:
    accountId: string
    projectName: string
    teamId: string
    teamType: string
Copy

AccountTeamProject Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AccountTeamProject resource accepts the following input properties:

AccountId This property is required. string
The unique account id
TeamId This property is required. string
An account team id
ProjectName string
The name of an already existing project
TeamType string
The Account team project type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
AccountId This property is required. string
The unique account id
TeamId This property is required. string
An account team id
ProjectName string
The name of an already existing project
TeamType string
The Account team project type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
accountId This property is required. String
The unique account id
teamId This property is required. String
An account team id
projectName String
The name of an already existing project
teamType String
The Account team project type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
accountId This property is required. string
The unique account id
teamId This property is required. string
An account team id
projectName string
The name of an already existing project
teamType string
The Account team project type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
account_id This property is required. str
The unique account id
team_id This property is required. str
An account team id
project_name str
The name of an already existing project
team_type str
The Account team project type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
accountId This property is required. String
The unique account id
teamId This property is required. String
An account team id
projectName String
The name of an already existing project
teamType String
The Account team project type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.

Outputs

All input properties are implicitly available as output properties. Additionally, the AccountTeamProject resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing AccountTeamProject Resource

Get an existing AccountTeamProject resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AccountTeamProjectState, opts?: CustomResourceOptions): AccountTeamProject
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        project_name: Optional[str] = None,
        team_id: Optional[str] = None,
        team_type: Optional[str] = None) -> AccountTeamProject
func GetAccountTeamProject(ctx *Context, name string, id IDInput, state *AccountTeamProjectState, opts ...ResourceOption) (*AccountTeamProject, error)
public static AccountTeamProject Get(string name, Input<string> id, AccountTeamProjectState? state, CustomResourceOptions? opts = null)
public static AccountTeamProject get(String name, Output<String> id, AccountTeamProjectState state, CustomResourceOptions options)
resources:  _:    type: aiven:AccountTeamProject    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccountId string
The unique account id
ProjectName string
The name of an already existing project
TeamId string
An account team id
TeamType string
The Account team project type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
AccountId string
The unique account id
ProjectName string
The name of an already existing project
TeamId string
An account team id
TeamType string
The Account team project type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
accountId String
The unique account id
projectName String
The name of an already existing project
teamId String
An account team id
teamType String
The Account team project type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
accountId string
The unique account id
projectName string
The name of an already existing project
teamId string
An account team id
teamType string
The Account team project type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
account_id str
The unique account id
project_name str
The name of an already existing project
team_id str
An account team id
team_type str
The Account team project type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
accountId String
The unique account id
projectName String
The name of an already existing project
teamId String
An account team id
teamType String
The Account team project type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:networking:read, organization:networking:write, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.

Import

$ pulumi import aiven:index/accountTeamProject:AccountTeamProject account_team_project1 account_id/team_id/project_name
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Aiven pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.