This lab walks you through Creating and Using Custom Service Accounts.
Duration: 45 minutes
Let's understand with the help of an example. Service Account works just like an IAM Member. Creating a service account is just like adding a member to your project, but the service account belongs to your applications rather than an individual end-user.
There are two types of Service Accounts i.e. Default Service Account which is created when you enable the APIs in the project, another one is Custom Service Account which is user-defined.
For default service accounts - scopes are defined that means which services it can access. This is a legacy method.
For Custom service accounts - scopes are not there, instead, permissions are there, you can give permission to service account like Viewer Access
Simply, Service accounts are used for Service to service communication.
Creating a Custom Service Account.
Creating a VM Instance using the custom service account.
Listing of the object in the bucket from the CLI.