Account

Allows management of a Google Cloud Platform service account

Creation of service accounts is eventually consistent, and that can lead to errors when you try to apply ACLs to service accounts immediately after creation.

Create a Account Resource

new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
def Account(resource_name, opts=None, account_id=None, description=None, display_name=None, project=None, __props__=None);
func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Account Resource Properties

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

Inputs

The Account resource accepts the following input properties:

AccountId string

The account id that is used to generate the service account email address and a stable unique id. It is unique within a project, must be 6-30 characters long, and match the regular expression a-z to comply with RFC1035. Changing this forces a new service account to be created.

Description string

A text description of the service account. Must be less than or equal to 256 UTF-8 bytes.

DisplayName string

The display name for the service account. Can be updated without creating a new resource.

Project string

The ID of the project that the service account will be created in. Defaults to the provider project configuration.

AccountId string

The account id that is used to generate the service account email address and a stable unique id. It is unique within a project, must be 6-30 characters long, and match the regular expression a-z to comply with RFC1035. Changing this forces a new service account to be created.

Description string

A text description of the service account. Must be less than or equal to 256 UTF-8 bytes.

DisplayName string

The display name for the service account. Can be updated without creating a new resource.

Project string

The ID of the project that the service account will be created in. Defaults to the provider project configuration.

accountId string

The account id that is used to generate the service account email address and a stable unique id. It is unique within a project, must be 6-30 characters long, and match the regular expression a-z to comply with RFC1035. Changing this forces a new service account to be created.

description string

A text description of the service account. Must be less than or equal to 256 UTF-8 bytes.

displayName string

The display name for the service account. Can be updated without creating a new resource.

project string

The ID of the project that the service account will be created in. Defaults to the provider project configuration.

account_id str

The account id that is used to generate the service account email address and a stable unique id. It is unique within a project, must be 6-30 characters long, and match the regular expression a-z to comply with RFC1035. Changing this forces a new service account to be created.

description str

A text description of the service account. Must be less than or equal to 256 UTF-8 bytes.

display_name str

The display name for the service account. Can be updated without creating a new resource.

project str

The ID of the project that the service account will be created in. Defaults to the provider project configuration.

Outputs

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

Email string

The e-mail address of the service account. This value should be referenced from any gcp.organizations.getIAMPolicy data sources that would grant the service account privileges.

Id string
The provider-assigned unique ID for this managed resource.
Name string

The fully-qualified name of the service account.

UniqueId string

The unique id of the service account.

Email string

The e-mail address of the service account. This value should be referenced from any gcp.organizations.getIAMPolicy data sources that would grant the service account privileges.

Id string
The provider-assigned unique ID for this managed resource.
Name string

The fully-qualified name of the service account.

UniqueId string

The unique id of the service account.

email string

The e-mail address of the service account. This value should be referenced from any gcp.organizations.getIAMPolicy data sources that would grant the service account privileges.

id string
The provider-assigned unique ID for this managed resource.
name string

The fully-qualified name of the service account.

uniqueId string

The unique id of the service account.

email str

The e-mail address of the service account. This value should be referenced from any gcp.organizations.getIAMPolicy data sources that would grant the service account privileges.

id str
The provider-assigned unique ID for this managed resource.
name str

The fully-qualified name of the service account.

unique_id str

The unique id of the service account.

Look up an Existing Account Resource

Get an existing Account 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?: AccountState, opts?: CustomResourceOptions): Account
static get(resource_name, id, opts=None, account_id=None, description=None, display_name=None, email=None, name=None, project=None, unique_id=None, __props__=None);
func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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 account id that is used to generate the service account email address and a stable unique id. It is unique within a project, must be 6-30 characters long, and match the regular expression a-z to comply with RFC1035. Changing this forces a new service account to be created.

Description string

A text description of the service account. Must be less than or equal to 256 UTF-8 bytes.

DisplayName string

The display name for the service account. Can be updated without creating a new resource.

Email string

The e-mail address of the service account. This value should be referenced from any gcp.organizations.getIAMPolicy data sources that would grant the service account privileges.

Name string

The fully-qualified name of the service account.

Project string

The ID of the project that the service account will be created in. Defaults to the provider project configuration.

UniqueId string

The unique id of the service account.

AccountId string

The account id that is used to generate the service account email address and a stable unique id. It is unique within a project, must be 6-30 characters long, and match the regular expression a-z to comply with RFC1035. Changing this forces a new service account to be created.

Description string

A text description of the service account. Must be less than or equal to 256 UTF-8 bytes.

DisplayName string

The display name for the service account. Can be updated without creating a new resource.

Email string

The e-mail address of the service account. This value should be referenced from any gcp.organizations.getIAMPolicy data sources that would grant the service account privileges.

Name string

The fully-qualified name of the service account.

Project string

The ID of the project that the service account will be created in. Defaults to the provider project configuration.

UniqueId string

The unique id of the service account.

accountId string

The account id that is used to generate the service account email address and a stable unique id. It is unique within a project, must be 6-30 characters long, and match the regular expression a-z to comply with RFC1035. Changing this forces a new service account to be created.

description string

A text description of the service account. Must be less than or equal to 256 UTF-8 bytes.

displayName string

The display name for the service account. Can be updated without creating a new resource.

email string

The e-mail address of the service account. This value should be referenced from any gcp.organizations.getIAMPolicy data sources that would grant the service account privileges.

name string

The fully-qualified name of the service account.

project string

The ID of the project that the service account will be created in. Defaults to the provider project configuration.

uniqueId string

The unique id of the service account.

account_id str

The account id that is used to generate the service account email address and a stable unique id. It is unique within a project, must be 6-30 characters long, and match the regular expression a-z to comply with RFC1035. Changing this forces a new service account to be created.

description str

A text description of the service account. Must be less than or equal to 256 UTF-8 bytes.

display_name str

The display name for the service account. Can be updated without creating a new resource.

email str

The e-mail address of the service account. This value should be referenced from any gcp.organizations.getIAMPolicy data sources that would grant the service account privileges.

name str

The fully-qualified name of the service account.

project str

The ID of the project that the service account will be created in. Defaults to the provider project configuration.

unique_id str

The unique id of the service account.

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.