RegionInstanceTemplateServiceAccount

data class RegionInstanceTemplateServiceAccount(val email: String? = null, val scopes: List<String>)

Constructors

Link copied to clipboard
constructor(email: String? = null, scopes: List<String>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val email: String? = null

The service account e-mail address. If not given, the default Google Compute Engine service account is used.

Link copied to clipboard

A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here. The service accounts documentation explains that access scopes are the legacy method of specifying permissions for your instance. To follow best practices you should create a dedicated service account with the minimum permissions the VM requires. To use a dedicated service account this field should be configured as a list containing the cloud-platform scope. See Authenticate workloads using service accounts best practices and Best practices for using service accounts.