google::service-account

Creates a service account.

Example

google::service-account example-service-account
    name: "example-service-account"
    display-name: "example-service-account"
    description: "example service account"
end

Attributes

Attribute Description
display-name The friendly display name for the service account. (Required)
description The optional description of the service account.
name The unique name of the service account. Must be a string starting with a lowercase letter followed by lower case alphanumerical characters or hyphens and between 6 and 30 characters. Valid values satisfy the regex: [^[a-z]([a-z]|[0-9]|-){5,29}$]. (Required)
enable-account Enable or disable the service account. Defaults to enable.
service-account-role list A list of roles to attach to the service account.

Outputs

Attribute Description
id The ID of the service account.
email The email address of the service account.